From: Nikita Sobolev Date: Thu, 10 Nov 2022 10:37:57 +0000 (+0300) Subject: gh-99281: [csv] remove try/except, `complex` always exists (#99282) X-Git-Tag: v3.12.0a2~55 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d6f276799754f0eab24e1c195d6dca1bc0aadf14;p=thirdparty%2FPython%2Fcpython.git gh-99281: [csv] remove try/except, `complex` always exists (#99282) --- diff --git a/Lib/csv.py b/Lib/csv.py index 0de5656a4eed..309a8f3f4863 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: '''