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/pyside2/tests/registry/util.py | |
| 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/pyside2/tests/registry/util.py')
| -rw-r--r-- | sources/pyside2/tests/registry/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/pyside2/tests/registry/util.py b/sources/pyside2/tests/registry/util.py index 2a5ec322a..612ed253f 100644 --- a/sources/pyside2/tests/registry/util.py +++ b/sources/pyside2/tests/registry/util.py @@ -112,7 +112,7 @@ def linux_distribution(): distribution = distro.linux_distribution() except ImportError: # platform.linux_distribution() was removed in 3.8 - if sys.version_info[0] < 3 or sys.version_info[1] < 8: + if sys.version_info[:2] < (3, 8): import platform distribution = platform.linux_distribution() if distribution: |
