summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2022-11-10 10:37:57 (GMT)
committerGitHub <noreply@github.com>2022-11-10 10:37:57 (GMT)
commitd6f276799754f0eab24e1c195d6dca1bc0aadf14 (patch)
tree27cde5c43200ae26e711c3e3c5bd54efdb21f4e7 /Lib
parent2e343fc465ed0206340cf139ba485f9004bbdd41 (diff)
downloadcpython-d6f276799754f0eab24e1c195d6dca1bc0aadf14.zip
cpython-d6f276799754f0eab24e1c195d6dca1bc0aadf14.tar.gz
cpython-d6f276799754f0eab24e1c195d6dca1bc0aadf14.tar.bz2
gh-99281: [csv] remove try/except, `complex` always exists (#99282)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/csv.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/Lib/csv.py b/Lib/csv.py
index 0de5656..309a8f3 100644
--- a/Lib/csv.py
+++ b/Lib/csv.py
@@ -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:
'''