Skip to content

Commit

Permalink
wxGUI: Fixed PEP8 errors in web_services/ (OSGeo#4706)
Browse files Browse the repository at this point in the history
* updated

* fixed import issue
  • Loading branch information
arohanajit authored Nov 20, 2024
1 parent bb04c32 commit 546a544
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
3 changes: 0 additions & 3 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ per-file-ignores =
gui/wxpython/mapwin/graphics.py: E722
gui/wxpython/startup/locdownload.py: E722, E402
gui/wxpython/timeline/g.gui.timeline.py: E501
gui/wxpython/tools/build_modules_xml.py: E722
gui/wxpython/web_services/cap_interface.py: E501
gui/wxpython/web_services/widgets.py: F841, E402
# Generated file
gui/wxpython/menustrings.py: E501
# F821 undefined name 'cmp'
Expand Down
8 changes: 3 additions & 5 deletions gui/wxpython/web_services/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,14 @@
)

import grass.script as gs
from grass.pydispatch.signal import Signal

rinwms_path = os.path.join(os.getenv("GISBASE"), "etc", "r.in.wms")
if rinwms_path not in sys.path:
sys.path.append(rinwms_path)

from wms_base import WMSDriversInfo
from srs import Srs

from grass.pydispatch.signal import Signal
from wms_base import WMSDriversInfo # noqa:E402
from srs import Srs # noqa:E402


class WSPanel(wx.Panel):
Expand Down Expand Up @@ -750,7 +749,6 @@ def OnListSelChanged(self, event):
self.projs_list = []
projs_list = []

intersect_proj = []
first = True
for curr in curr_sel_ls:
layer_projs = curr["cap_intf_l"].GetLayerData("srs")
Expand Down

0 comments on commit 546a544

Please sign in to comment.