Skip to content
Permalink
Browse files

[processing] remove Python 2 compatibility layer

  • Loading branch information
alexbruy committed Nov 27, 2017
1 parent 0f1f24a commit 0059b2b692f30d87d74dd08a13d6a3ec741bbd93
Showing with 45 additions and 170 deletions.
  1. +1 −2 python/plugins/processing/ProcessingPlugin.py
  2. +1 −2 python/plugins/processing/algs/exampleprovider/ProcessingExampleProviderPlugin.py
  3. +1 −2 python/plugins/processing/algs/examplescripts/ProcessingExampleScriptsPlugin.py
  4. +1 −4 python/plugins/processing/algs/gdal/GdalUtils.py
  5. +0 −1 python/plugins/processing/algs/gdal/extractprojection.py
  6. +0 −1 python/plugins/processing/algs/gdal/gdalcalc.py
  7. +0 −1 python/plugins/processing/algs/gdal/nearblack.py
  8. +0 −1 python/plugins/processing/algs/gdal/ogr2ogrtabletopostgislist.py
  9. +1 −1 python/plugins/processing/algs/gdal/rasterize.py
  10. +0 −1 python/plugins/processing/algs/gdal/rasterize_over.py
  11. +0 −2 python/plugins/processing/algs/grass7/Grass7Algorithm.py
  12. +0 −1 python/plugins/processing/algs/grass7/Grass7AlgorithmProvider.py
  13. +1 −3 python/plugins/processing/algs/grass7/Grass7Utils.py
  14. +0 −1 python/plugins/processing/algs/grass7/ext/r_blend_rgb.py
  15. +0 −1 python/plugins/processing/algs/grass7/ext/r_category.py
  16. +0 −1 python/plugins/processing/algs/grass7/ext/r_colors.py
  17. +0 −1 python/plugins/processing/algs/grass7/ext/r_colors_stddev.py
  18. +0 −1 python/plugins/processing/algs/grass7/ext/r_null.py
  19. +0 −1 python/plugins/processing/algs/grass7/ext/r_shade.py
  20. +0 −1 python/plugins/processing/algs/grass7/ext/r_statistics.py
  21. +0 −1 python/plugins/processing/algs/grass7/ext/r_stats_quantile_rast.py
  22. +0 −1 python/plugins/processing/algs/grass7/ext/r_what_color.py
  23. +0 −1 python/plugins/processing/algs/grass7/ext/v_net_connectivity.py
  24. +0 −1 python/plugins/processing/algs/qgis/ConcaveHull.py
  25. +0 −1 python/plugins/processing/algs/qgis/Datasources2Vrt.py
  26. +0 −1 python/plugins/processing/algs/qgis/Delaunay.py
  27. +0 −1 python/plugins/processing/algs/qgis/DensifyGeometries.py
  28. +0 −1 python/plugins/processing/algs/qgis/DensifyGeometriesInterval.py
  29. +0 −1 python/plugins/processing/algs/qgis/EliminateSelection.py
  30. +0 −1 python/plugins/processing/algs/qgis/Explode.py
  31. +0 −1 python/plugins/processing/algs/qgis/FieldPyculator.py
  32. +1 −1 python/plugins/processing/algs/qgis/HubDistanceLines.py
  33. +0 −1 python/plugins/processing/algs/qgis/HubDistancePoints.py
  34. +0 −1 python/plugins/processing/algs/qgis/HypsometricCurves.py
  35. +0 −1 python/plugins/processing/algs/qgis/MinimumBoundingGeometry.py
  36. +0 −2 python/plugins/processing/algs/qgis/NearestNeighbourAnalysis.py
  37. +0 −1 python/plugins/processing/algs/qgis/PointsDisplacement.py
  38. +0 −2 python/plugins/processing/algs/qgis/PointsFromLines.py
  39. +0 −2 python/plugins/processing/algs/qgis/PointsFromPolygons.py
  40. +0 −1 python/plugins/processing/algs/qgis/PointsToPaths.py
  41. +0 −1 python/plugins/processing/algs/qgis/PostGISExecuteSQL.py
  42. +0 −1 python/plugins/processing/algs/qgis/RandomExtract.py
  43. +0 −1 python/plugins/processing/algs/qgis/RandomExtractWithinSubsets.py
  44. +0 −1 python/plugins/processing/algs/qgis/RandomPointsAlongLines.py
  45. +0 −1 python/plugins/processing/algs/qgis/RandomPointsExtent.py
  46. +0 −1 python/plugins/processing/algs/qgis/RandomSelection.py
  47. +0 −1 python/plugins/processing/algs/qgis/RandomSelectionWithinSubsets.py
  48. +0 −1 python/plugins/processing/algs/qgis/RectanglesOvalsDiamondsFixed.py
  49. +0 −1 python/plugins/processing/algs/qgis/RectanglesOvalsDiamondsVariable.py
  50. +0 −1 python/plugins/processing/algs/qgis/RegularPoints.py
  51. +0 −3 python/plugins/processing/algs/qgis/SpatialJoin.py
  52. +0 −1 python/plugins/processing/algs/qgis/SpatialJoinSummary.py
  53. +0 −1 python/plugins/processing/algs/qgis/SpatialiteExecuteSQL.py
  54. +0 −1 python/plugins/processing/algs/qgis/StatisticsByCategories.py
  55. +0 −1 python/plugins/processing/algs/qgis/UniqueValues.py
  56. +0 −1 python/plugins/processing/algs/qgis/VectorSplit.py
  57. +0 −1 python/plugins/processing/algs/qgis/VoronoiPolygons.py
  58. +0 −1 python/plugins/processing/algs/qgis/scripts/Keep_n_biggest_parts.py
  59. +0 −1 python/plugins/processing/algs/qgis/ui/FieldsCalculatorDialog.py
  60. +0 −3 python/plugins/processing/core/GeoAlgorithm.py
  61. +2 −4 python/plugins/processing/core/ProcessingConfig.py
  62. +2 −4 python/plugins/processing/core/ProcessingLog.py
  63. +1 −2 python/plugins/processing/core/ProcessingResults.py
  64. +1 −4 python/plugins/processing/core/outputs.py
  65. +2 −6 python/plugins/processing/core/parameters.py
  66. +0 −1 python/plugins/processing/gui/AlgorithmDialog.py
  67. +1 −1 python/plugins/processing/gui/AlgorithmDialogBase.py
  68. +0 −2 python/plugins/processing/gui/AlgorithmExecutor.py
  69. +0 −1 python/plugins/processing/gui/BatchAlgorithmDialog.py
  70. +0 −2 python/plugins/processing/gui/BatchInputSelectionPanel.py
  71. +0 −1 python/plugins/processing/gui/BatchPanel.py
  72. +0 −1 python/plugins/processing/gui/CheckboxesPanel.py
  73. +0 −2 python/plugins/processing/gui/ConfigDialog.py
  74. +1 −2 python/plugins/processing/gui/ContextAction.py
  75. +0 −1 python/plugins/processing/gui/DestinationSelectionPanel.py
  76. +0 −1 python/plugins/processing/gui/DirectorySelectorDialog.py
  77. +0 −1 python/plugins/processing/gui/EditRenderingStylesDialog.py
  78. +0 −1 python/plugins/processing/gui/ExtentSelectionPanel.py
  79. +0 −2 python/plugins/processing/gui/FixedTableDialog.py
  80. +0 −1 python/plugins/processing/gui/FixedTablePanel.py
  81. +0 −3 python/plugins/processing/gui/GetScriptsAndModels.py
  82. +0 −2 python/plugins/processing/gui/Help2Html.py
  83. +0 −1 python/plugins/processing/gui/HelpEditionDialog.py
  84. +22 −10 python/plugins/processing/gui/ListMultiselectWidget.py
  85. +0 −1 python/plugins/processing/gui/MultipleFileInputDialog.py
  86. +1 −3 python/plugins/processing/gui/MultipleInputDialog.py
  87. +0 −1 python/plugins/processing/gui/NumberInputPanel.py
  88. +0 −1 python/plugins/processing/gui/PointSelectionPanel.py
  89. +0 −2 python/plugins/processing/gui/ProcessingToolbox.py
  90. +1 −2 python/plugins/processing/gui/RenderingStyles.py
  91. +0 −1 python/plugins/processing/gui/TestTools.py
  92. +1 −2 python/plugins/processing/gui/ToolboxAction.py
  93. +0 −1 python/plugins/processing/modeler/ModelerDialog.py
  94. +0 −1 python/plugins/processing/modeler/ModelerParameterDefinitionDialog.py
  95. +0 −1 python/plugins/processing/modeler/ModelerParametersDialog.py
  96. +1 −3 python/plugins/processing/modeler/ModelerUtils.py
  97. +0 −2 python/plugins/processing/modeler/MultilineTextPanel.py
  98. +0 −1 python/plugins/processing/preconfigured/PreconfiguredUtils.py
  99. +0 −1 python/plugins/processing/script/ScriptAlgorithm.py
  100. +0 −1 python/plugins/processing/script/ScriptSelector.py
  101. +1 −3 python/plugins/processing/script/ScriptUtils.py
  102. +0 −2 python/plugins/processing/tools/dataobjects.py
  103. +0 −4 python/plugins/processing/tools/raster.py
  104. +1 −3 python/plugins/processing/tools/spatialite.py
  105. +0 −2 python/plugins/processing/tools/system.py
@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import object

__author__ = 'Victor Olaya'
__date__ = 'August 2012'
@@ -160,7 +159,7 @@ def createDataItem(self, path, parentItem):
return None


class ProcessingPlugin(object):
class ProcessingPlugin:

def __init__(self, iface):
self.iface = iface
@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import object

__author__ = 'Victor Olaya'
__date__ = 'July 2013'
@@ -40,7 +39,7 @@
sys.path.insert(0, cmd_folder)


class ProcessingExampleProviderPlugin(object):
class ProcessingExampleProviderPlugin:

def __init__(self):
self.provider = ExampleAlgorithmProvider()
@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import object

__author__ = 'Victor Olaya'
__date__ = 'May 2016'
@@ -31,7 +30,7 @@
from processing.core.Processing import Processing


class ProcessingExampleScriptsPlugin(object):
class ProcessingExampleScriptsPlugin:

def initGui(self):
Processing.addScripts(os.path.join(os.path.dirname(__file__), "scripts"))
@@ -16,9 +16,6 @@
* *
***************************************************************************
"""
from builtins import str
from builtins import range
from builtins import object

__author__ = 'Victor Olaya'
__date__ = 'August 2012'
@@ -57,7 +54,7 @@
gdalAvailable = False


class GdalUtils(object):
class GdalUtils:
GDAL_HELP_PATH = 'GDAL_HELP_PATH'

supportedRasters = None
@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import str

__author__ = 'Alexander Bruy'
__date__ = 'September 2013'
@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import str

__author__ = 'Giovanni Manghi'
__date__ = 'January 2015'
@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import str

__author__ = 'Victor Olaya'
__date__ = 'August 2012'
@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import str

__author__ = 'Victor Olaya'
__date__ = 'November 2012'
@@ -16,7 +16,7 @@
* *
***************************************************************************
"""
from builtins import str


__author__ = 'Alexander Bruy'
__date__ = 'September 2013'
@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import str

__author__ = 'Alexander Bruy'
__date__ = 'September 2013'
@@ -16,8 +16,6 @@
* *
***************************************************************************
"""
from builtins import str
from builtins import range

__author__ = 'Victor Olaya'
__date__ = 'February 2015'
@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import str

__author__ = 'Victor Olaya'
__date__ = 'April 2014'
@@ -16,8 +16,6 @@
* *
***************************************************************************
"""
from builtins import str
from builtins import object

__author__ = 'Victor Olaya'
__date__ = 'February 2015'
@@ -43,7 +41,7 @@
from processing.algs.gdal.GdalUtils import GdalUtils


class Grass7Utils(object):
class Grass7Utils:

GRASS_REGION_XMIN = 'GRASS7_REGION_XMIN'
GRASS_REGION_YMIN = 'GRASS7_REGION_YMIN'
@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import str

__author__ = 'Médéric Ribreux'
__date__ = 'February 2016'
@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import str

__author__ = 'Médéric Ribreux'
__date__ = 'February 2016'
@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import str

__author__ = 'Médéric Ribreux'
__date__ = 'February 2016'
@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import str

__author__ = 'Médéric Ribreux'
__date__ = 'February 2016'
@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import str

__author__ = 'Médéric Ribreux'
__date__ = 'February 2016'
@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import str

__author__ = 'Médéric Ribreux'
__date__ = 'February 2016'
@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import str

__author__ = 'Médéric Ribreux'
__date__ = 'September 2017'
@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import range

__author__ = 'Médéric Ribreux'
__date__ = 'February 2016'
@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import str

__author__ = 'Médéric Ribreux'
__date__ = 'February 2016'
@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import range

__author__ = 'Médéric Ribreux'
__date__ = 'December 2015'
@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import range

__author__ = 'Piotr Pociask'
__date__ = 'May 2014'
@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import range

__author__ = 'Luigi Pirelli'
__date__ = 'May 2015'
@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import next

__author__ = 'Victor Olaya'
__date__ = 'August 2012'
@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import range

__author__ = 'Victor Olaya'
__date__ = 'October 2012'
@@ -17,7 +17,6 @@
* *
***************************************************************************
"""
from builtins import range

__author__ = 'Anita Graser'
__date__ = 'Dec 2012'
@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import range

__author__ = 'Bernhard Ströbl'
__date__ = 'January 2017'
@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import range

__author__ = 'Victor Olaya'
__date__ = 'August 2012'
@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import str

__author__ = 'Victor Olaya & NextGIS'
__date__ = 'August 2012'
@@ -16,7 +16,7 @@
* *
***************************************************************************
"""
from builtins import next


__author__ = 'Michael Minn'
__date__ = 'May 2010'
@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import next

__author__ = 'Michael Minn'
__date__ = 'May 2010'
@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import str

__author__ = 'Alexander Bruy'
__date__ = 'November 2014'
@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import str

__author__ = 'Nyall Dawson'
__date__ = 'September 2017'
@@ -16,8 +16,6 @@
* *
***************************************************************************
"""
from builtins import next
from builtins import str

__author__ = 'Victor Olaya'
__date__ = 'August 2012'
@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import next

__author__ = 'Alexander Bruy'
__date__ = 'July 2013'
@@ -16,8 +16,6 @@
* *
***************************************************************************
"""
from builtins import str
from builtins import range

__author__ = 'Alexander Bruy'
__date__ = 'August 2013'
@@ -16,8 +16,6 @@
* *
***************************************************************************
"""
from builtins import str
from builtins import range

__author__ = 'Alexander Bruy'
__date__ = 'August 2013'
@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import str

__author__ = 'Alexander Bruy'
__date__ = 'April 2014'
@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import str

__author__ = 'Victor Olaya, Carterix Geomatics'
__date__ = 'October 2012'
@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import range

__author__ = 'Victor Olaya'
__date__ = 'August 2012'
@@ -16,7 +16,6 @@
* *
***************************************************************************
"""
from builtins import range

__author__ = 'Victor Olaya'
__date__ = 'August 2012'

0 comments on commit 0059b2b

Please sign in to comment.
You can’t perform that action at this time.