mirror of https://github.com/python/cpython
gh-99281: [csv] remove try/except, `complex` always exists (#99282)
This commit is contained in:
parent
2e343fc465
commit
d6f2767997
|
@ -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:
|
||||
'''
|
||||
|
|
Loading…
Reference in New Issue