aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/doc
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2020-11-07 13:20:38 +0100
committerChristian Tismer <tismer@stackless.com>2020-11-09 08:10:06 +0000
commitc9cefb4ab7f93a64fc1f34a71745f697e0a46e44 (patch)
treedaf3e658a2a1e1eb4078f983187525b951fa0d04 /sources/pyside6/doc
parentd72f0e35f22f3f9460d12e40f8f5676bf5a7f0d1 (diff)
python3: remove all obsolete "from __future__" import statements
Note that not all future statements can be removed: PEP 563 for instance deals with from __future__ import annotations Task-number: PYSIDE-904 Change-Id: Ia387ec87f3c68ca64d13e8e80191eda900f58638 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/pyside6/doc')
-rw-r--r--sources/pyside6/doc/CMakeLists.txt2
-rw-r--r--sources/pyside6/doc/tutorials/portingguide/chapter3/bookwindow.py2
2 files changed, 1 insertions, 3 deletions
diff --git a/sources/pyside6/doc/CMakeLists.txt b/sources/pyside6/doc/CMakeLists.txt
index 49ad1dcd7..a16be06bc 100644
--- a/sources/pyside6/doc/CMakeLists.txt
+++ b/sources/pyside6/doc/CMakeLists.txt
@@ -104,7 +104,7 @@ endif()
# conditional tag for sphinx build
#string(JOIN "_" SPHINX_TAG ${DOC_OUTPUT_FORMAT} "format")
# Python script to replace the virtualFolder string in the QHP
-set(py_cmd "from __future__ import print_function
+set(py_cmd "
import fileinput
import re
try:
diff --git a/sources/pyside6/doc/tutorials/portingguide/chapter3/bookwindow.py b/sources/pyside6/doc/tutorials/portingguide/chapter3/bookwindow.py
index 0b20e8ad5..e080d7c11 100644
--- a/sources/pyside6/doc/tutorials/portingguide/chapter3/bookwindow.py
+++ b/sources/pyside6/doc/tutorials/portingguide/chapter3/bookwindow.py
@@ -38,8 +38,6 @@
##
#############################################################################
-from __future__ import print_function, absolute_import
-
from PySide6.QtGui import QAction
from PySide6.QtWidgets import (QAbstractItemView, QDataWidgetMapper,
QHeaderView, QMainWindow, QMessageBox)