Browse Source

fix pep8

tags/1.4.6
Etienne Trimaille 2 years ago
parent
commit
e2d8de4f7c
4 changed files with 5 additions and 3 deletions
  1. 1
    1
      core/custom_logging.py
  2. 1
    1
      core/parser/osm_parser.py
  3. 2
    1
      quick_osm.py
  4. 1
    0
      ui/test/test_quickosm_widget.py

+ 1
- 1
core/custom_logging.py View File

@@ -111,4 +111,4 @@ def setup_logger(logger_name):

# add the handlers to the logger
add_logging_handler_once(logger, console_handler)
add_logging_handler_once(logger, qgis_handler)
add_logging_handler_once(logger, qgis_handler)

+ 1
- 1
core/parser/osm_parser.py View File

@@ -142,7 +142,7 @@ class OsmParser(QObject):
msg = "Error on the layer : " + \
layers[layer]['vectorLayer'].lastError()
raise GeoAlgorithmExecutionException(msg)
layers[layer]['vectorLayer'].setProviderEncoding('UTF-8')

# Set some default tags

+ 2
- 1
quick_osm.py View File

@@ -36,7 +36,8 @@ from QuickOSM.ui.my_queries_dialog import MyQueriesDockWidget
from QuickOSM.ui.query_dialog import QueryDockWidget
from QuickOSM.ui.osm_file_dialog import OsmFileDockWidget
from QuickOSM.ui.quick_query_dialog import QuickQueryDockWidget
from QuickOSM.quick_osm_processing.algorithm_provider import QuickOSMAlgorithmProvider
from QuickOSM.quick_osm_processing.algorithm_provider import (
QuickOSMAlgorithmProvider)
from QuickOSM.core.utilities.tools import (
get_current_version,
get_setting,

+ 1
- 0
ui/test/test_quickosm_widget.py View File

@@ -31,6 +31,7 @@ QGIS_APP, CANVAS, IFACE, PARENT = get_qgis_app()

from QuickOSM.ui.QuickOSMWidget import QuickOSMWidget


class TestQuickOSMWidget(unittest.TestCase):

def setUp(self):

Loading…
Cancel
Save