mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-03 03:13:04 +03:00
Flake8 fixes
This commit is contained in:
parent
a5917b3fa3
commit
aa1368f551
|
@ -308,6 +308,7 @@ def _save(im, fp, filename):
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
def get_interlace(im):
|
def get_interlace(im):
|
||||||
try:
|
try:
|
||||||
interlace = im.encoderinfo["interlace"]
|
interlace = im.encoderinfo["interlace"]
|
||||||
|
@ -320,6 +321,7 @@ def get_interlace(im):
|
||||||
|
|
||||||
return interlace
|
return interlace
|
||||||
|
|
||||||
|
|
||||||
def get_local_header(fp, im, offset=(0, 0)):
|
def get_local_header(fp, im, offset=(0, 0)):
|
||||||
transparent_color_exists = False
|
transparent_color_exists = False
|
||||||
try:
|
try:
|
||||||
|
@ -381,6 +383,7 @@ def get_local_header(fp, im, offset=(0, 0)):
|
||||||
o8(flags) + # flags
|
o8(flags) + # flags
|
||||||
o8(8)) # bits
|
o8(8)) # bits
|
||||||
|
|
||||||
|
|
||||||
def _save_netpbm(im, fp, filename):
|
def _save_netpbm(im, fp, filename):
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue
Block a user