diff --git a/python/plugins/processing/tests/OtbAlgorithmsTest.py b/python/plugins/processing/tests/OtbAlgorithmsTest.py index 646fa631ec8..1e1176601af 100644 --- a/python/plugins/processing/tests/OtbAlgorithmsTest.py +++ b/python/plugins/processing/tests/OtbAlgorithmsTest.py @@ -177,7 +177,7 @@ class TestOtbAlgorithms(unittest.TestCase, AlgorithmsTestBase.AlgorithmsTest): alg_smoothing = OtbAlgorithm('Image Filtering', 'Smoothing', os.path.join(self.descrFolder, 'Smoothing.txt')) found = False for param in alg_smoothing.parameterDefinitions(): - ## print (param.name(), param.type()) + # print (param.name(), param.type()) if param.type() == 'OTBParameterChoice': found = True break diff --git a/scripts/symbol_xml2db.py b/scripts/symbol_xml2db.py index 661ae873c9d..1a5591350f2 100644 --- a/scripts/symbol_xml2db.py +++ b/scripts/symbol_xml2db.py @@ -66,7 +66,7 @@ print("Creating tables in the Database\n") for table in create_tables: try: c.execute(table) - print table + print(table) except sqlite3.OperationalError as e: pass conn.commit() diff --git a/tests/src/python/test_qgsserver_cachemanager.py b/tests/src/python/test_qgsserver_cachemanager.py index f8aba475867..54a37df61bb 100644 --- a/tests/src/python/test_qgsserver_cachemanager.py +++ b/tests/src/python/test_qgsserver_cachemanager.py @@ -109,7 +109,7 @@ class PyServerCache(QgsServerCacheFilter): with open(os.path.join(self._tile_cache_dir, m.hexdigest() + ".png"), "rb") as f: statusOK = img.loadFromData(f.read()) if not statusOK: - print("Could not read or find the contents document. Error at line %d, column %d:\n%s" % (errorLine, errorColumn, errorStr)) + print("Could not read or find the contents document.") return QByteArray() ba = QByteArray()