]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-99281: [csv] remove try/except, `complex` always exists (#99282)
authorNikita Sobolev <mail@sobolevn.me>
Thu, 10 Nov 2022 10:37:57 +0000 (13:37 +0300)
committerGitHub <noreply@github.com>
Thu, 10 Nov 2022 10:37:57 +0000 (10:37 +0000)
Lib/csv.py

index 0de5656a4eed7ba11d573b81f0031106653698d9..309a8f3f486365b2bcf4aecd871b798390334080 100644 (file)
@@ -165,11 +165,6 @@ class DictWriter:
 
     __class_getitem__ = classmethod(types.GenericAlias)
 
-# Guard Sniffer's type checking against builds that exclude complex()
-try:
-    complex
-except NameError:
-    complex = float
 
 class Sniffer:
     '''