mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
gh-99281: [csv] remove try/except, complex
always exists (#99282)
This commit is contained in:
parent
2e343fc465
commit
d6f2767997
1 changed files with 0 additions and 5 deletions
|
@ -165,11 +165,6 @@ class DictWriter:
|
||||||
|
|
||||||
__class_getitem__ = classmethod(types.GenericAlias)
|
__class_getitem__ = classmethod(types.GenericAlias)
|
||||||
|
|
||||||
# Guard Sniffer's type checking against builds that exclude complex()
|
|
||||||
try:
|
|
||||||
complex
|
|
||||||
except NameError:
|
|
||||||
complex = float
|
|
||||||
|
|
||||||
class Sniffer:
|
class Sniffer:
|
||||||
'''
|
'''
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue