Skip to content

Commit

Permalink
Remove python future compatibility layer
Browse files Browse the repository at this point in the history
  • Loading branch information
marioba authored and m-kuhn committed Aug 7, 2017
1 parent 2712f66 commit 78af413
Show file tree
Hide file tree
Showing 86 changed files with 2 additions and 157 deletions.
3 changes: 0 additions & 3 deletions python/console/console_editor.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@
***************************************************************************/ ***************************************************************************/
Some portions of code were taken from https://code.google.com/p/pydee/ Some portions of code were taken from https://code.google.com/p/pydee/
""" """
from __future__ import print_function
from builtins import str
from builtins import range
from qgis.PyQt.QtCore import Qt, QObject, QEvent, QCoreApplication, QFileInfo, QSize from qgis.PyQt.QtCore import Qt, QObject, QEvent, QCoreApplication, QFileInfo, QSize
from qgis.PyQt.QtGui import QFont, QFontMetrics, QColor, QKeySequence, QCursor, QFontDatabase from qgis.PyQt.QtGui import QFont, QFontMetrics, QColor, QKeySequence, QCursor, QFontDatabase
from qgis.PyQt.QtWidgets import QShortcut, QMenu, QApplication, QWidget, QGridLayout, QSpacerItem, QSizePolicy, QFileDialog, QTabWidget, QTreeWidgetItem, QFrame, QLabel, QToolButton, QMessageBox from qgis.PyQt.QtWidgets import QShortcut, QMenu, QApplication, QWidget, QGridLayout, QSpacerItem, QSizePolicy, QFileDialog, QTabWidget, QTreeWidgetItem, QFrame, QLabel, QToolButton, QMessageBox
Expand Down
5 changes: 0 additions & 5 deletions python/plugins/MetaSearch/dialogs/maindialog.py
Original file line number Original file line Diff line number Diff line change
@@ -1,8 +1,3 @@
from future import standard_library
standard_library.install_aliases()
from builtins import map
from builtins import str
from builtins import range
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
############################################################################### ###############################################################################
# #
Expand Down
3 changes: 0 additions & 3 deletions python/plugins/MetaSearch/pavement.py
Original file line number Original file line Diff line number Diff line change
@@ -1,6 +1,3 @@
from future import standard_library
standard_library.install_aliases()
from builtins import str
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
############################################################################### ###############################################################################
# #
Expand Down
3 changes: 0 additions & 3 deletions python/plugins/MetaSearch/util.py
Original file line number Original file line Diff line number Diff line change
@@ -1,6 +1,3 @@
from future import standard_library
standard_library.install_aliases()
from builtins import object
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
############################################################################### ###############################################################################
# #
Expand Down
2 changes: 0 additions & 2 deletions python/plugins/db_manager/db_manager.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
* * * *
***************************************************************************/ ***************************************************************************/
""" """
from __future__ import absolute_import
from builtins import range


import functools import functools


Expand Down
2 changes: 0 additions & 2 deletions python/plugins/db_manager/db_plugins/vlayers/connector.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
* * * *
***************************************************************************/ ***************************************************************************/
""" """
from __future__ import print_function
from builtins import object


from qgis.PyQt.QtCore import QUrl, QTemporaryFile from qgis.PyQt.QtCore import QUrl, QTemporaryFile


Expand Down
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
##text=string ##text=string
# fix_print_with_import # fix_print_with_import


Expand Down
4 changes: 0 additions & 4 deletions python/plugins/processing/algs/grass7/ext/i.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@
* * * *
*************************************************************************** ***************************************************************************
""" """
from future import standard_library
standard_library.install_aliases()
from builtins import str
from builtins import range


__author__ = 'Médéric Ribreux' __author__ = 'Médéric Ribreux'
__date__ = 'April 2016' __date__ = 'April 2016'
Expand Down
1 change: 0 additions & 1 deletion python/plugins/processing/algs/grass7/ext/i_albedo.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* * * *
*************************************************************************** ***************************************************************************
""" """
from __future__ import absolute_import


__author__ = 'Médéric Ribreux' __author__ = 'Médéric Ribreux'
__date__ = 'March 2016' __date__ = 'March 2016'
Expand Down
1 change: 0 additions & 1 deletion python/plugins/processing/algs/grass7/ext/i_aster_toar.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* * * *
*************************************************************************** ***************************************************************************
""" """
from __future__ import absolute_import


__author__ = 'Médéric Ribreux' __author__ = 'Médéric Ribreux'
__date__ = 'March 2016' __date__ = 'March 2016'
Expand Down
1 change: 0 additions & 1 deletion python/plugins/processing/algs/grass7/ext/i_cca.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* * * *
*************************************************************************** ***************************************************************************
""" """
from __future__ import absolute_import


__author__ = 'Médéric Ribreux' __author__ = 'Médéric Ribreux'
__date__ = 'March 2016' __date__ = 'March 2016'
Expand Down
1 change: 0 additions & 1 deletion python/plugins/processing/algs/grass7/ext/i_cluster.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* * * *
*************************************************************************** ***************************************************************************
""" """
from __future__ import absolute_import


__author__ = 'Médéric Ribreux' __author__ = 'Médéric Ribreux'
__date__ = 'March 2016' __date__ = 'March 2016'
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* * * *
*************************************************************************** ***************************************************************************
""" """
from __future__ import absolute_import


__author__ = 'Médéric Ribreux' __author__ = 'Médéric Ribreux'
__date__ = 'March 2016' __date__ = 'March 2016'
Expand Down
1 change: 0 additions & 1 deletion python/plugins/processing/algs/grass7/ext/i_evapo_mh.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* * * *
*************************************************************************** ***************************************************************************
""" """
from __future__ import absolute_import


__author__ = 'Médéric Ribreux' __author__ = 'Médéric Ribreux'
__date__ = 'March 2016' __date__ = 'March 2016'
Expand Down
1 change: 0 additions & 1 deletion python/plugins/processing/algs/grass7/ext/i_gensig.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* * * *
*************************************************************************** ***************************************************************************
""" """
from __future__ import absolute_import


__author__ = 'Médéric Ribreux' __author__ = 'Médéric Ribreux'
__date__ = 'March 2016' __date__ = 'March 2016'
Expand Down
1 change: 0 additions & 1 deletion python/plugins/processing/algs/grass7/ext/i_gensigset.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* * * *
*************************************************************************** ***************************************************************************
""" """
from __future__ import absolute_import


__author__ = 'Médéric Ribreux' __author__ = 'Médéric Ribreux'
__date__ = 'March 2016' __date__ = 'March 2016'
Expand Down
1 change: 0 additions & 1 deletion python/plugins/processing/algs/grass7/ext/i_group.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* * * *
*************************************************************************** ***************************************************************************
""" """
from __future__ import absolute_import


__author__ = 'Médéric Ribreux' __author__ = 'Médéric Ribreux'
__date__ = 'March 2016' __date__ = 'March 2016'
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* * * *
*************************************************************************** ***************************************************************************
""" """
from __future__ import absolute_import


__author__ = 'Médéric Ribreux' __author__ = 'Médéric Ribreux'
__date__ = 'March 2016' __date__ = 'March 2016'
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* * * *
*************************************************************************** ***************************************************************************
""" """
from __future__ import absolute_import


__author__ = 'Médéric Ribreux' __author__ = 'Médéric Ribreux'
__date__ = 'March 2016' __date__ = 'March 2016'
Expand Down
1 change: 0 additions & 1 deletion python/plugins/processing/algs/grass7/ext/i_maxlik.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* * * *
*************************************************************************** ***************************************************************************
""" """
from __future__ import absolute_import


__author__ = 'Médéric Ribreux' __author__ = 'Médéric Ribreux'
__date__ = 'March 2016' __date__ = 'March 2016'
Expand Down
1 change: 0 additions & 1 deletion python/plugins/processing/algs/grass7/ext/i_oif.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* * * *
*************************************************************************** ***************************************************************************
""" """
from __future__ import absolute_import


__author__ = 'Médéric Ribreux' __author__ = 'Médéric Ribreux'
__date__ = 'March 2016' __date__ = 'March 2016'
Expand Down
1 change: 0 additions & 1 deletion python/plugins/processing/algs/grass7/ext/i_pansharpen.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* * * *
*************************************************************************** ***************************************************************************
""" """
from __future__ import absolute_import


__author__ = 'Médéric Ribreux' __author__ = 'Médéric Ribreux'
__date__ = 'March 2016' __date__ = 'March 2016'
Expand Down
1 change: 0 additions & 1 deletion python/plugins/processing/algs/grass7/ext/i_pca.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* * * *
*************************************************************************** ***************************************************************************
""" """
from __future__ import absolute_import


__author__ = 'Médéric Ribreux' __author__ = 'Médéric Ribreux'
__date__ = 'March 2016' __date__ = 'March 2016'
Expand Down
1 change: 0 additions & 1 deletion python/plugins/processing/algs/grass7/ext/i_rectify.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* * * *
*************************************************************************** ***************************************************************************
""" """
from __future__ import absolute_import


__author__ = 'Médéric Ribreux' __author__ = 'Médéric Ribreux'
__date__ = 'April 2016' __date__ = 'April 2016'
Expand Down
1 change: 0 additions & 1 deletion python/plugins/processing/algs/grass7/ext/i_segment.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* * * *
*************************************************************************** ***************************************************************************
""" """
from __future__ import absolute_import


__author__ = 'Médéric Ribreux' __author__ = 'Médéric Ribreux'
__date__ = 'March 2016' __date__ = 'March 2016'
Expand Down
1 change: 0 additions & 1 deletion python/plugins/processing/algs/grass7/ext/i_smap.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* * * *
*************************************************************************** ***************************************************************************
""" """
from __future__ import absolute_import


__author__ = 'Médéric Ribreux' __author__ = 'Médéric Ribreux'
__date__ = 'March 2016' __date__ = 'March 2016'
Expand Down
1 change: 0 additions & 1 deletion python/plugins/processing/algs/grass7/ext/i_tasscap.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* * * *
*************************************************************************** ***************************************************************************
""" """
from __future__ import absolute_import


__author__ = 'Médéric Ribreux' __author__ = 'Médéric Ribreux'
__date__ = 'March 2016' __date__ = 'March 2016'
Expand Down
1 change: 0 additions & 1 deletion python/plugins/processing/algs/grass7/ext/i_topo_corr.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* * * *
*************************************************************************** ***************************************************************************
""" """
from __future__ import absolute_import


__author__ = 'Médéric Ribreux' __author__ = 'Médéric Ribreux'
__date__ = 'April 2016' __date__ = 'April 2016'
Expand Down
1 change: 0 additions & 1 deletion python/plugins/processing/algs/grass7/ext/r_li_cwed.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* * * *
*************************************************************************** ***************************************************************************
""" """
from __future__ import absolute_import


__author__ = 'Médéric Ribreux' __author__ = 'Médéric Ribreux'
__date__ = 'February 2016' __date__ = 'February 2016'
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* * * *
*************************************************************************** ***************************************************************************
""" """
from __future__ import absolute_import


__author__ = 'Médéric Ribreux' __author__ = 'Médéric Ribreux'
__date__ = 'February 2016' __date__ = 'February 2016'
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* * * *
*************************************************************************** ***************************************************************************
""" """
from __future__ import absolute_import


__author__ = 'Médéric Ribreux' __author__ = 'Médéric Ribreux'
__date__ = 'February 2016' __date__ = 'February 2016'
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* * * *
*************************************************************************** ***************************************************************************
""" """
from __future__ import absolute_import


__author__ = 'Médéric Ribreux' __author__ = 'Médéric Ribreux'
__date__ = 'February 2016' __date__ = 'February 2016'
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* * * *
*************************************************************************** ***************************************************************************
""" """
from __future__ import absolute_import


__author__ = 'Médéric Ribreux' __author__ = 'Médéric Ribreux'
__date__ = 'February 2016' __date__ = 'February 2016'
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* * * *
*************************************************************************** ***************************************************************************
""" """
from __future__ import absolute_import


__author__ = 'Médéric Ribreux' __author__ = 'Médéric Ribreux'
__date__ = 'February 2016' __date__ = 'February 2016'
Expand Down
1 change: 0 additions & 1 deletion python/plugins/processing/algs/grass7/ext/r_li_mpa.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* * * *
*************************************************************************** ***************************************************************************
""" """
from __future__ import absolute_import


__author__ = 'Médéric Ribreux' __author__ = 'Médéric Ribreux'
__date__ = 'February 2016' __date__ = 'February 2016'
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* * * *
*************************************************************************** ***************************************************************************
""" """
from __future__ import absolute_import


__author__ = 'Médéric Ribreux' __author__ = 'Médéric Ribreux'
__date__ = 'February 2016' __date__ = 'February 2016'
Expand Down
1 change: 0 additions & 1 deletion python/plugins/processing/algs/grass7/ext/r_li_mps.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* * * *
*************************************************************************** ***************************************************************************
""" """
from __future__ import absolute_import


__author__ = 'Médéric Ribreux' __author__ = 'Médéric Ribreux'
__date__ = 'February 2016' __date__ = 'February 2016'
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* * * *
*************************************************************************** ***************************************************************************
""" """
from __future__ import absolute_import


__author__ = 'Médéric Ribreux' __author__ = 'Médéric Ribreux'
__date__ = 'February 2016' __date__ = 'February 2016'
Expand Down
1 change: 0 additions & 1 deletion python/plugins/processing/algs/grass7/ext/r_li_padcv.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* * * *
*************************************************************************** ***************************************************************************
""" """
from __future__ import absolute_import


__author__ = 'Médéric Ribreux' __author__ = 'Médéric Ribreux'
__date__ = 'February 2016' __date__ = 'February 2016'
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* * * *
*************************************************************************** ***************************************************************************
""" """
from __future__ import absolute_import


__author__ = 'Médéric Ribreux' __author__ = 'Médéric Ribreux'
__date__ = 'February 2016' __date__ = 'February 2016'
Expand Down
1 change: 0 additions & 1 deletion python/plugins/processing/algs/grass7/ext/r_li_padrange.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* * * *
*************************************************************************** ***************************************************************************
""" """
from __future__ import absolute_import


__author__ = 'Médéric Ribreux' __author__ = 'Médéric Ribreux'
__date__ = 'February 2016' __date__ = 'February 2016'
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* * * *
*************************************************************************** ***************************************************************************
""" """
from __future__ import absolute_import


__author__ = 'Médéric Ribreux' __author__ = 'Médéric Ribreux'
__date__ = 'February 2016' __date__ = 'February 2016'
Expand Down
1 change: 0 additions & 1 deletion python/plugins/processing/algs/grass7/ext/r_li_padsd.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* * * *
*************************************************************************** ***************************************************************************
""" """
from __future__ import absolute_import


__author__ = 'Médéric Ribreux' __author__ = 'Médéric Ribreux'
__date__ = 'February 2016' __date__ = 'February 2016'
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* * * *
*************************************************************************** ***************************************************************************
""" """
from __future__ import absolute_import


__author__ = 'Médéric Ribreux' __author__ = 'Médéric Ribreux'
__date__ = 'February 2016' __date__ = 'February 2016'
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* * * *
*************************************************************************** ***************************************************************************
""" """
from __future__ import absolute_import


__author__ = 'Médéric Ribreux' __author__ = 'Médéric Ribreux'
__date__ = 'February 2016' __date__ = 'February 2016'
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* * * *
*************************************************************************** ***************************************************************************
""" """
from __future__ import absolute_import


__author__ = 'Médéric Ribreux' __author__ = 'Médéric Ribreux'
__date__ = 'February 2016' __date__ = 'February 2016'
Expand Down
1 change: 0 additions & 1 deletion python/plugins/processing/algs/grass7/ext/r_li_patchnum.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* * * *
*************************************************************************** ***************************************************************************
""" """
from __future__ import absolute_import


__author__ = 'Médéric Ribreux' __author__ = 'Médéric Ribreux'
__date__ = 'February 2016' __date__ = 'February 2016'
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* * * *
*************************************************************************** ***************************************************************************
""" """
from __future__ import absolute_import


__author__ = 'Médéric Ribreux' __author__ = 'Médéric Ribreux'
__date__ = 'February 2016' __date__ = 'February 2016'
Expand Down
1 change: 0 additions & 1 deletion python/plugins/processing/algs/grass7/ext/r_li_pielou.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* * * *
*************************************************************************** ***************************************************************************
""" """
from __future__ import absolute_import


__author__ = 'Médéric Ribreux' __author__ = 'Médéric Ribreux'
__date__ = 'February 2016' __date__ = 'February 2016'
Expand Down
Loading

0 comments on commit 78af413

Please sign in to comment.