diff options
author | Cristian Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2020-10-27 20:12:12 +0100 |
---|---|---|
committer | Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> | 2020-10-28 13:56:40 +0000 |
commit | 1fceed1fc3565080eef556c9b71498780aa94bf2 (patch) | |
tree | 848628ec5561e8c90d19cf3996f1047d39ab7928 /examples/declarative | |
parent | 1bc8c8ce262d80bbea0141f48055342adca9e3f9 (diff) |
examples: Remove Python 2.7 and <3.6 related code
* removing from __future__ import ...
* updating CMakeLists.txt files
* removing special if-else for Python 2 and 3
Change-Id: I8a34b06b6b384ebc5323f20f7c15c357a5be6d62
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'examples/declarative')
12 files changed, 0 insertions, 24 deletions
diff --git a/examples/declarative/extending/chapter1-basics/basics.py b/examples/declarative/extending/chapter1-basics/basics.py index 95ee36362..e75e1b330 100644 --- a/examples/declarative/extending/chapter1-basics/basics.py +++ b/examples/declarative/extending/chapter1-basics/basics.py @@ -39,8 +39,6 @@ ## ############################################################################# -from __future__ import print_function - """PySide2 port of the qml/tutorials/extending-qml/chapter1-basics example from Qt v5.x""" import sys, os diff --git a/examples/declarative/extending/chapter2-methods/methods.py b/examples/declarative/extending/chapter2-methods/methods.py index 1d02628cd..e2a4eb804 100644 --- a/examples/declarative/extending/chapter2-methods/methods.py +++ b/examples/declarative/extending/chapter2-methods/methods.py @@ -39,8 +39,6 @@ ## ############################################################################# -from __future__ import print_function - """PySide2 port of the qml/tutorials/extending-qml/chapter2-methods example from Qt v5.x""" import sys, os diff --git a/examples/declarative/extending/chapter3-bindings/bindings.py b/examples/declarative/extending/chapter3-bindings/bindings.py index f20fc0bcc..b603cb65e 100644 --- a/examples/declarative/extending/chapter3-bindings/bindings.py +++ b/examples/declarative/extending/chapter3-bindings/bindings.py @@ -39,8 +39,6 @@ ## ############################################################################# -from __future__ import print_function - """PySide2 port of the qml/tutorials/extending-qml/chapter3-bindings example from Qt v5.x""" import sys, os diff --git a/examples/declarative/extending/chapter4-customPropertyTypes/customPropertyTypes.py b/examples/declarative/extending/chapter4-customPropertyTypes/customPropertyTypes.py index 66e4dea7c..888cb4861 100644 --- a/examples/declarative/extending/chapter4-customPropertyTypes/customPropertyTypes.py +++ b/examples/declarative/extending/chapter4-customPropertyTypes/customPropertyTypes.py @@ -39,8 +39,6 @@ ## ############################################################################# -from __future__ import print_function - """PySide2 port of the qml/tutorials/extending-qml/chapter4-customPropertyTypes example from Qt v5.x""" import sys, os diff --git a/examples/declarative/extending/chapter5-listproperties/listproperties.py b/examples/declarative/extending/chapter5-listproperties/listproperties.py index 659f8d5c5..5c3c428c2 100644 --- a/examples/declarative/extending/chapter5-listproperties/listproperties.py +++ b/examples/declarative/extending/chapter5-listproperties/listproperties.py @@ -39,8 +39,6 @@ ## ############################################################################# -from __future__ import print_function - """PySide2 port of the qml/tutorials/extending-qml/chapter5-listproperties example from Qt v5.x""" import sys, os diff --git a/examples/declarative/scrolling.py b/examples/declarative/scrolling.py index b4a0ee270..f4b740e02 100644 --- a/examples/declarative/scrolling.py +++ b/examples/declarative/scrolling.py @@ -39,8 +39,6 @@ ## ############################################################################# -from __future__ import print_function - import os import sys from PySide2.QtCore import QUrl diff --git a/examples/declarative/signals/pytoqml1/main.py b/examples/declarative/signals/pytoqml1/main.py index 218d885a0..b57809392 100644 --- a/examples/declarative/signals/pytoqml1/main.py +++ b/examples/declarative/signals/pytoqml1/main.py @@ -39,8 +39,6 @@ ## ############################################################################# -from __future__ import print_function - import os import sys from PySide2.QtCore import QTimer, QUrl diff --git a/examples/declarative/signals/qmltopy1/main.py b/examples/declarative/signals/qmltopy1/main.py index 1342dbadb..a2adfef29 100644 --- a/examples/declarative/signals/qmltopy1/main.py +++ b/examples/declarative/signals/qmltopy1/main.py @@ -39,8 +39,6 @@ ## ############################################################################# -from __future__ import print_function - import os import sys from PySide2.QtCore import QObject, QUrl, Slot diff --git a/examples/declarative/signals/qmltopy2/main.py b/examples/declarative/signals/qmltopy2/main.py index 9b0aca815..0fc6a2225 100644 --- a/examples/declarative/signals/qmltopy2/main.py +++ b/examples/declarative/signals/qmltopy2/main.py @@ -39,8 +39,6 @@ ## ############################################################################# -from __future__ import print_function - import os import sys from PySide2.QtCore import QObject, QUrl, Slot diff --git a/examples/declarative/signals/qmltopy3/main.py b/examples/declarative/signals/qmltopy3/main.py index 485dd62f5..0ba50fae8 100644 --- a/examples/declarative/signals/qmltopy3/main.py +++ b/examples/declarative/signals/qmltopy3/main.py @@ -39,8 +39,6 @@ ## ############################################################################# -from __future__ import print_function - import os import sys from PySide2.QtCore import QUrl diff --git a/examples/declarative/signals/qmltopy4/main.py b/examples/declarative/signals/qmltopy4/main.py index d165e61f3..278f3526f 100644 --- a/examples/declarative/signals/qmltopy4/main.py +++ b/examples/declarative/signals/qmltopy4/main.py @@ -39,8 +39,6 @@ ## ############################################################################# -from __future__ import print_function - import os import sys from PySide2.QtCore import QObject, QUrl diff --git a/examples/declarative/usingmodel.py b/examples/declarative/usingmodel.py index 9b67bd0d4..3d5e8be32 100644 --- a/examples/declarative/usingmodel.py +++ b/examples/declarative/usingmodel.py @@ -39,8 +39,6 @@ ## ############################################################################# -from __future__ import print_function - import os import sys from PySide2.QtCore import QAbstractListModel, Qt, QUrl, QByteArray |