Skip to content

Commit 26dcb9b

Browse files
committed
flake8 complaints
1 parent f6877d0 commit 26dcb9b

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

mgrs/__init__.py

+3-6
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ def toMGRS(self, latitude, longitude, inDegrees=True, MGRSPrecision=5):
9191
c = ctypes.string_at(p)
9292
return c.decode('utf-8')
9393

94-
9594
def toLatLon(self, MGRS, inDegrees=True):
9695
plat = ctypes.pointer(ctypes.c_double())
9796
plon = ctypes.pointer(ctypes.c_double())
@@ -118,7 +117,6 @@ def MGRSToUTM(self, MGRS, encoding='utf-8'):
118117
else:
119118
mgrs = MGRS
120119

121-
122120
mgrs = ctypes.string_at(mgrs)
123121
zone = ctypes.pointer(ctypes.c_long())
124122
hemisphere = ctypes.pointer(ctypes.c_char())
@@ -128,10 +126,9 @@ def MGRSToUTM(self, MGRS, encoding='utf-8'):
128126
core.rt.Convert_MGRS_To_UTM(mgrs, zone, hemisphere, easting, northing)
129127

130128
return (zone.contents.value,
131-
hemisphere.contents.value.decode('utf-8'),
132-
easting.contents.value,
133-
northing.contents.value)
134-
129+
hemisphere.contents.value.decode('utf-8'),
130+
easting.contents.value,
131+
northing.contents.value)
135132

136133
def UTMToMGRS(self, zone, hemisphere, easting, northing, MGRSPrecision=5):
137134
mgrs = ctypes.create_string_buffer(80)

0 commit comments

Comments
 (0)