mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Replaced del with pop
This commit is contained in:
parent
dc5c0d303c
commit
86828ffd2a
|
@ -1660,8 +1660,7 @@ class Image(object):
|
||||||
|
|
||||||
save_all = False
|
save_all = False
|
||||||
if 'save_all' in params:
|
if 'save_all' in params:
|
||||||
save_all = params['save_all']
|
save_all = params.pop('save_all')
|
||||||
del params['save_all']
|
|
||||||
self.encoderinfo = params
|
self.encoderinfo = params
|
||||||
self.encoderconfig = ()
|
self.encoderconfig = ()
|
||||||
|
|
||||||
|
|
|
@ -109,8 +109,7 @@ class ChunkStream(object):
|
||||||
cid = None
|
cid = None
|
||||||
|
|
||||||
if self.queue:
|
if self.queue:
|
||||||
cid, pos, length = self.queue[-1]
|
cid, pos, length = self.queue.pop()
|
||||||
del self.queue[-1]
|
|
||||||
self.fp.seek(pos)
|
self.fp.seek(pos)
|
||||||
else:
|
else:
|
||||||
s = self.fp.read(8)
|
s = self.fp.read(8)
|
||||||
|
|
|
@ -5,8 +5,7 @@ import sys
|
||||||
import os
|
import os
|
||||||
|
|
||||||
if "--installed" in sys.argv:
|
if "--installed" in sys.argv:
|
||||||
sys_path_0 = sys.path[0]
|
sys_path_0 = sys.path.pop(0)
|
||||||
del sys.path[0]
|
|
||||||
|
|
||||||
from PIL import Image, ImageDraw, ImageFilter, ImageMath
|
from PIL import Image, ImageDraw, ImageFilter, ImageMath
|
||||||
from PIL import features
|
from PIL import features
|
||||||
|
|
Loading…
Reference in New Issue
Block a user