Skip to content

Commit

Permalink
fixed 402
Browse files Browse the repository at this point in the history
  • Loading branch information
Arohan Ajit authored and Arohan Ajit committed Oct 31, 2024
1 parent 91b9284 commit f0c8c8a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
1 change: 0 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ per-file-ignores =
python/grass/*/*/__init__.py: F403
python/grass/*/*/*/__init__.py: F403
# E402 module level import not at top of file
scripts/r.in.wms/wms_drv.py: E402
scripts/r.semantic.label/r.semantic.label.py: E501
scripts/db.out.ogr/db.out.ogr.py: F841
scripts/g.extension/g.extension.py: E501
Expand Down
21 changes: 9 additions & 12 deletions scripts/r.in.wms/wms_drv.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
"""

import socket
import grass.script as gs

from time import sleep

import grass.script as gs

try:
from osgeo import gdal
except ImportError:
Expand All @@ -32,21 +32,18 @@
)
)

import numpy as np

np.arrayrange = np.arange

from math import pi, floor

from urllib.error import HTTPError
from http.client import HTTPException

from math import floor, pi
from urllib.error import HTTPError
from xml.etree.ElementTree import ParseError

from wms_base import GetEpsg, GetSRSParamVal, WMSBase
import numpy as np

from wms_cap_parsers import WMTSCapabilitiesTree, OnEarthCapabilitiesTree
from srs import Srs
from wms_base import GetEpsg, GetSRSParamVal, WMSBase
from wms_cap_parsers import OnEarthCapabilitiesTree, WMTSCapabilitiesTree

np.arrayrange = np.arange


class WMSDrv(WMSBase):
Expand Down

0 comments on commit f0c8c8a

Please sign in to comment.