Skip to content

Commit 46249ef

Browse files
committed
Reformat
1 parent 5410cb6 commit 46249ef

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/shapefile.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -901,6 +901,7 @@ def _from_shp_file(cls, f, next_shape, oid=None, bbox=None): # pylint: disable=
901901
def _try_write_to_shp_file(f, s, i, bbox, mbox, zbox): # pylint: disable=unused-argument
902902
pass
903903

904+
904905
class _CanHaveBBox(Shape):
905906
"""As well as setting bounding boxes, we also utilize the
906907
fact that this mixin applies to all the shapes that are
@@ -2991,9 +2992,7 @@ def __shpRecord(self, s):
29912992
else None
29922993
)
29932994
new_zbox = (
2994-
self.__zbox(s)
2995-
if s.shapeType in {POINTZ} | _HasZ._shapeTypes
2996-
else None
2995+
self.__zbox(s) if s.shapeType in {POINTZ} | _HasZ._shapeTypes else None
29972996
)
29982997

29992998
f.write(pack("<i", s.shapeType))
@@ -3016,7 +3015,6 @@ def __shpRecord(self, s):
30163015
f.write(pack(">i", length))
30173016
f.seek(finish)
30183017

3019-
30203018
return offset, length
30213019

30223020
def __shxRecord(self, offset, length):

0 commit comments

Comments
 (0)