diff options
author | Christian Tismer <tismer@stackless.com> | 2020-10-27 11:34:32 +0100 |
---|---|---|
committer | Christian Tismer <tismer@stackless.com> | 2020-10-27 21:13:20 +0000 |
commit | dcced0742f383b1932d0e56323387fbd8aeb4513 (patch) | |
tree | ccafffb6ffb68c9b8ddbeb1ade1ac5c8a1efa59b /sources/shiboken2/shibokenmodule/__init__.py.in | |
parent | 844f1cc2541fe7213ebf2d72039ef28a04e200b4 (diff) |
remove traces of Python2 from Python code
It will be assumed that Python is always Python 3.
All checks for Python 2 are removed.
This is the first part of cleaning up the Python code.
We will then also clean the C code.
Task-number: PYSIDE-904
Change-Id: I06050a8c1a18a19583f551b61775833a91673f4e
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/shiboken2/shibokenmodule/__init__.py.in')
-rw-r--r-- | sources/shiboken2/shibokenmodule/__init__.py.in | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sources/shiboken2/shibokenmodule/__init__.py.in b/sources/shiboken2/shibokenmodule/__init__.py.in index 6ba8929c9..f99011c7f 100644 --- a/sources/shiboken2/shibokenmodule/__init__.py.in +++ b/sources/shiboken2/shibokenmodule/__init__.py.in @@ -20,9 +20,7 @@ import re import tempfile import keyword import functools -if sys.version_info[0] == 3: - # PyInstaller seems to sometimes fail: - import typing +import typing from .shiboken2 import * |