From d6f276799754f0eab24e1c195d6dca1bc0aadf14 Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Thu, 10 Nov 2022 13:37:57 +0300 Subject: [PATCH] gh-99281: [csv] remove try/except, `complex` always exists (#99282) --- Lib/csv.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Lib/csv.py b/Lib/csv.py index 0de5656a4ee..309a8f3f486 100644 --- a/Lib/csv.py +++ b/Lib/csv.py @@ -165,11 +165,6 @@ def writerows(self, rowdicts): __class_getitem__ = classmethod(types.GenericAlias) -# Guard Sniffer's type checking against builds that exclude complex() -try: - complex -except NameError: - complex = float class Sniffer: '''