Skip to content

Commit 0a8fdfc

Browse files
Danielhiversenocefpaf
authored andcommitted
minor indentation mistake (#877)
1 parent 9e67e4b commit 0a8fdfc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

folium/utilities.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ def colormap(x):
156156
height, width, nblayers = arr.shape
157157

158158
if nblayers not in [1, 3, 4]:
159-
raise ValueError('Data must be NxM (mono), '
160-
'NxMx3 (RGB), or NxMx4 (RGBA)')
159+
raise ValueError('Data must be NxM (mono), '
160+
'NxMx3 (RGB), or NxMx4 (RGBA)')
161161
assert arr.shape == (height, width, nblayers)
162162

163163
if nblayers == 1:
@@ -191,10 +191,10 @@ def colormap(x):
191191
for i in range(height)])
192192

193193
def png_pack(png_tag, data):
194-
chunk_head = png_tag + data
195-
return (struct.pack('!I', len(data)) +
196-
chunk_head +
197-
struct.pack('!I', 0xFFFFFFFF & zlib.crc32(chunk_head)))
194+
chunk_head = png_tag + data
195+
return (struct.pack('!I', len(data)) +
196+
chunk_head +
197+
struct.pack('!I', 0xFFFFFFFF & zlib.crc32(chunk_head)))
198198

199199
return b''.join([
200200
b'\x89PNG\r\n\x1a\n',

0 commit comments

Comments
 (0)