Skip to content

Commit 5bfa659

Browse files
delete workarround for pyton2.7 (#2112)
Co-authored-by: Mark Keller <[email protected]>
1 parent cc52d00 commit 5bfa659

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

DESCRIPTION.md

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Source code is also available at: https://github.com/snowflakedb/snowflake-conne
99
# Release Notes
1010
- v3.13.3(TBD)
1111
- Bumped pyOpenSSL dependency upper boundary from <25.0.0 to <26.0.0.
12+
- Removed the workaround for a Python 2.7 bug.
1213

1314
- v3.13.2(January 29, 2025)
1415
- Changed not to use scoped temporary objects.

src/snowflake/connector/connection.py

-4
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
from io import StringIO
2424
from logging import getLogger
2525
from threading import Lock
26-
from time import strptime
2726
from types import TracebackType
2827
from typing import Any, Callable, Generator, Iterable, Iterator, NamedTuple, Sequence
2928
from uuid import UUID
@@ -312,9 +311,6 @@ def _get_private_bytes_from_file(
312311
for m in [method for method in dir(errors) if callable(getattr(errors, method))]:
313312
setattr(sys.modules[__name__], m, getattr(errors, m))
314313

315-
# Workaround for https://bugs.python.org/issue7980
316-
strptime("20150102030405", "%Y%m%d%H%M%S")
317-
318314
logger = getLogger(__name__)
319315

320316

0 commit comments

Comments
 (0)