diff options
| author | Christian Tismer <tismer@stackless.com> | 2024-06-20 13:38:14 +0200 |
|---|---|---|
| committer | Christian Tismer <tismer@stackless.com> | 2024-06-20 13:57:34 +0200 |
| commit | 50061290756323ff339bd0473e67117c8191d130 (patch) | |
| tree | fb8caaaddcafc0abe0958d24f9e79ca9a480c057 /build_scripts/platforms | |
| parent | 2b77370de90e9a342b3d00f6bb5c44e70579b458 (diff) | |
Python-3.10: Allow the new syntax for Python 3.9
Add a future statement to all Python source files.
Task-number: PYSIDE-2786
Change-Id: Icd6688c7795a9e16fdcaa829686d57792df27690
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Diffstat (limited to 'build_scripts/platforms')
| -rw-r--r-- | build_scripts/platforms/__init__.py | 1 | ||||
| -rw-r--r-- | build_scripts/platforms/linux.py | 1 | ||||
| -rw-r--r-- | build_scripts/platforms/macos.py | 1 | ||||
| -rw-r--r-- | build_scripts/platforms/unix.py | 1 | ||||
| -rw-r--r-- | build_scripts/platforms/windows_desktop.py | 1 |
5 files changed, 5 insertions, 0 deletions
diff --git a/build_scripts/platforms/__init__.py b/build_scripts/platforms/__init__.py index 853aaad7b..498a6e52b 100644 --- a/build_scripts/platforms/__init__.py +++ b/build_scripts/platforms/__init__.py @@ -1,2 +1,3 @@ # Copyright (C) 2018 The Qt Company Ltd. # SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only +from __future__ import annotations diff --git a/build_scripts/platforms/linux.py b/build_scripts/platforms/linux.py index b4c66d94e..32ad9daca 100644 --- a/build_scripts/platforms/linux.py +++ b/build_scripts/platforms/linux.py @@ -1,5 +1,6 @@ # Copyright (C) 2018 The Qt Company Ltd. # SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only +from __future__ import annotations from pathlib import Path diff --git a/build_scripts/platforms/macos.py b/build_scripts/platforms/macos.py index 505573e0b..31d552786 100644 --- a/build_scripts/platforms/macos.py +++ b/build_scripts/platforms/macos.py @@ -1,5 +1,6 @@ # Copyright (C) 2018 The Qt Company Ltd. # SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only +from __future__ import annotations import fnmatch from pathlib import Path diff --git a/build_scripts/platforms/unix.py b/build_scripts/platforms/unix.py index 642b2c874..5604636c2 100644 --- a/build_scripts/platforms/unix.py +++ b/build_scripts/platforms/unix.py @@ -1,5 +1,6 @@ # Copyright (C) 2018 The Qt Company Ltd. # SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only +from __future__ import annotations import sys from pathlib import Path diff --git a/build_scripts/platforms/windows_desktop.py b/build_scripts/platforms/windows_desktop.py index 9c29953be..8dbfd6698 100644 --- a/build_scripts/platforms/windows_desktop.py +++ b/build_scripts/platforms/windows_desktop.py @@ -1,5 +1,6 @@ # Copyright (C) 2018 The Qt Company Ltd. # SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only +from __future__ import annotations import functools import os |
