Skip to content

Commit 31df84a

Browse files
committed
run 2to3 on source
1 parent 8069154 commit 31df84a

File tree

464 files changed

+2399
-1671
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

464 files changed

+2399
-1671
lines changed

INSTALL

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
QGIS
22
Building QGIS from source - step by step
3-
Thursday June 09, 2016
3+
Wednesday September 21, 2016
44

55

6-
Last Updated: Thursday June 09, 2016
7-
Last Change : Thursday June 09, 2016
6+
Last Updated: Wednesday September 21, 2016
7+
Last Change : Wednesday July 27, 2016
88

99

1010
1. Introduction
@@ -356,7 +356,7 @@ If you want to use `ccmake` or other interactive tools, run the following
356356
command in the empty build directory once before starting to use the
357357
interactive tools.
358358

359-
cmake -DENABLE_QT5=ON -DPORT_PLUGINS=ON
359+
cmake
360360

361361
If everything went ok you can finally start to compile. (As usual append a -jX where X is the number of available cores option to make to speed up your build process)
362362

ci/travis/linux/qt5/install.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,5 @@ cmake \
5252
-DWITH_SERVER=ON \
5353
-DWITH_INTERNAL_YAML=OFF \
5454
-DDISABLE_DEPRECATED=ON \
55-
-DPORT_PLUGINS=ON \
5655
-DCXX_EXTRA_FLAGS="$CLANG_WARNINGS" \
5756
..

doc/INSTALL.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
66
<TITLE>QGIS</TITLE>
77

8-
<!-- Included /home/fischer/src/qgis/doc/style.css -->
8+
<!-- Included /home/fischer/src/qgis3/doc/style.css -->
99
<STYLE TYPE="text/css">
1010
body{ background: white;
1111
color: black;
@@ -77,13 +77,13 @@
7777
<DIV CLASS="header" ID="header">
7878
<H1>QGIS</H1>
7979
<H2>Building QGIS from source - step by step</H2>
80-
<H3>Thursday June 09, 2016</H3>
80+
<H3>Wednesday September 21, 2016</H3>
8181
</DIV>
8282

8383
<DIV CLASS="body" ID="body">
8484
<P>
85-
Last Updated: Thursday June 09, 2016
86-
Last Change : Thursday June 09, 2016
85+
Last Updated: Wednesday September 21, 2016
86+
Last Change : Wednesday July 27, 2016
8787
</P>
8888
<DIV CLASS="toc">
8989

@@ -577,7 +577,7 @@ <H3>3.10.1. Install build dependencies</H3>
577577
</P>
578578

579579
<div class="code"><PRE>
580-
cmake -DENABLE_QT5=ON -DPORT_PLUGINS=ON
580+
cmake
581581
</PRE></div>
582582

583583
<P>
@@ -3016,5 +3016,5 @@ <H1>9. Authors and Acknowledgments</H1>
30163016

30173017
</DIV>
30183018
<!-- html code generated by txt2tags 2.6 (http://txt2tags.org) -->
3019-
<!-- cmdline: txt2tags -\-encoding=utf-8 -o/home/fischer/src/qgis/debian/build-master-pyqtwrapper-qt4/doc/INSTALL.html -t html /home/fischer/src/qgis/doc/INSTALL.t2t -->
3019+
<!-- cmdline: txt2tags -\-encoding=utf-8 -o/home/fischer/src/qgis3/debian/build-master-qt5/doc/INSTALL.html -t html /home/fischer/src/qgis3/doc/INSTALL.t2t -->
30203020
</BODY></HTML>

doc/linux.t2t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ command in the empty build directory once before starting to use the
235235
interactive tools.
236236

237237
```
238-
cmake -DENABLE_QT5=ON -DPORT_PLUGINS=ON
238+
cmake
239239
```
240240

241241
If everything went ok you can finally start to compile. (As usual append a -jX where X is the number of available cores option to make to speed up your build process)

python/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
* *
1717
***************************************************************************
1818
"""
19+
from builtins import zip
1920

2021
__author__ = 'Martin Dobias'
2122
__date__ = 'January 2007'
@@ -31,7 +32,7 @@ def mapping_feature(feature):
3132
geom = feature.geometry()
3233
properties = {}
3334
fields = [field.name() for field in feature.fields()]
34-
properties = dict(zip(fields, feature.attributes()))
35+
properties = dict(list(zip(fields, feature.attributes())))
3536
return {'type': 'Feature',
3637
'properties': properties,
3738
'geometry': geom.__geo_interface__}

python/console/console.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
***************************************************************************/
1919
Some portions of code were taken from https://code.google.com/p/pydee/
2020
"""
21+
from builtins import str
22+
from builtins import range
2123
import os
2224

2325
from qgis.PyQt.QtCore import Qt, QTimer, QSettings, QCoreApplication, QSize, QByteArray, QFileInfo, QUrl, QDir
@@ -410,7 +412,7 @@ def __init__(self, parent=None):
410412
}
411413

412414
self.classMenu = QMenu()
413-
for (title, icon), commands in default_command.items():
415+
for (title, icon), commands in list(default_command.items()):
414416
action = self.classMenu.addAction(icon, title)
415417
action.triggered.connect(partial(self.shell.commandConsole, commands))
416418

python/console/console_editor.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
***************************************************************************/
1919
Some portions of code were taken from https://code.google.com/p/pydee/
2020
"""
21+
from __future__ import print_function
22+
from builtins import str
23+
from builtins import range
2124
from qgis.PyQt.QtCore import Qt, QObject, QEvent, QSettings, QCoreApplication, QFileInfo, QSize
2225
from qgis.PyQt.QtGui import QFont, QFontMetrics, QColor, QKeySequence, QCursor
2326
from qgis.PyQt.QtWidgets import QShortcut, QMenu, QApplication, QWidget, QGridLayout, QSpacerItem, QSizePolicy, QFileDialog, QTabWidget, QTreeWidgetItem, QFrame, QLabel, QToolButton, QMessageBox
@@ -47,7 +50,7 @@ def __init__(self, window, tab, *args):
4750
self.window = window
4851
self.tab = tab
4952
self._handlers = {}
50-
for shortcut, handler in KeyFilter.SHORTCUTS.items():
53+
for shortcut, handler in list(KeyFilter.SHORTCUTS.items()):
5154
modifiers = shortcut[0]
5255
if not isinstance(modifiers, list):
5356
modifiers = [modifiers]
@@ -1190,7 +1193,7 @@ def listObject(self, tab):
11901193
for superClass in class_data.super:
11911194
if superClass == 'object':
11921195
continue
1193-
if isinstance(superClass, basestring):
1196+
if isinstance(superClass, str):
11941197
superClassName.append(superClass)
11951198
else:
11961199
superClassName.append(superClass.name)

python/console/console_output.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
***************************************************************************/
1919
Some portions of code were taken from https://code.google.com/p/pydee/
2020
"""
21+
from builtins import range
22+
from builtins import object
2123

2224
from qgis.PyQt.QtCore import Qt, QCoreApplication, QSettings
2325
from qgis.PyQt.QtGui import QColor, QFont, QKeySequence

python/console/console_sci.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
***************************************************************************/
1919
Some portions of code were taken from https://code.google.com/p/pydee/
2020
"""
21+
from builtins import bytes
22+
from builtins import range
2123

2224
from qgis.PyQt.QtCore import Qt, QSettings, QByteArray, QCoreApplication, QFile, QSize
2325
from qgis.PyQt.QtWidgets import QDialog, QMenu, QShortcut, QApplication

python/console/console_settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
***************************************************************************/
1919
Some portions of code were taken from https://code.google.com/p/pydee/
2020
"""
21+
from builtins import range
2122

2223
from qgis.PyQt.QtCore import QCoreApplication, QSize, QSettings, QFileInfo, Qt
2324
from qgis.PyQt.QtWidgets import QDialog, QFileDialog, QMessageBox, QTableWidgetItem

0 commit comments

Comments
 (0)