Skip to content

Commit 6bdee34

Browse files
committed
changing just the conditional statement for re_type
1 parent 6414d83 commit 6bdee34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/compat/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
PY2 = sys.version_info[0] == 2
4343
PY3 = (sys.version_info[0] >= 3)
44-
PY35 = (sys.version_info >= (3, 5, 4))
44+
PY35 = (sys.version_info >= (3, 5))
4545
PY36 = (sys.version_info >= (3, 6))
4646
PYPY = (platform.python_implementation() == 'PyPy')
4747

@@ -425,7 +425,7 @@ def raise_with_traceback(exc, traceback=Ellipsis):
425425

426426
# In Python 3.7, the private re._pattern_type is removed.
427427
# Python 3.5+ have typing.re.Pattern
428-
if PY35:
428+
if sys.version_info >= (3, 5, 4):
429429
import typing
430430
re_type = typing.re.Pattern
431431
else:

0 commit comments

Comments
 (0)