Skip to content

Commit 87d97eb

Browse files
committed
Rename unpack helper
1 parent edbd735 commit 87d97eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/shapefile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1223,13 +1223,13 @@ def __len__(self):
12231223
shpLength = shp.tell()
12241224
shp.seek(100)
12251225
# Do a fast shape iteration until end of file.
1226-
unpack = Struct(">2i").unpack
1226+
unpack_2_int32_be = Struct(">2i").unpack
12271227
offsets = []
12281228
pos = shp.tell()
12291229
while pos < shpLength:
12301230
offsets.append(pos)
12311231
# Unpack the shape header only
1232-
(recNum, recLength) = unpack(shp.read(8))
1232+
(recNum, recLength) = unpack_2_int32_be(shp.read(8))
12331233
# Jump to next shape position
12341234
pos += 8 + (2 * recLength)
12351235
shp.seek(pos)

0 commit comments

Comments
 (0)