Pillow/PIL
Jon Dufresne d244fbb299 Remove unnecessary calls to dict.keys()
iter(dict) is equivalent to iter(dict.keys()), so simply act on the dict
instead of adding the extra call.

Inspired by Lennart Regebro's PyCon 2017 presentation "Prehistoric
Patterns in Python". Available at:

https://www.youtube.com/watch?v=V5-JH23Vk0I
2017-05-28 09:55:38 -07:00
..
__init__.py 4.2.0.pre0 version bump 2017-04-19 03:02:45 -07:00
_binary.py Flake8 fixes 2017-04-20 21:14:23 +10:00
_tkinter_finder.py Flake8 fixes 2016-09-03 12:17:22 +10:00
_util.py flake8 2014-07-06 01:50:24 +03:00
BdfFontFile.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
BmpImagePlugin.py Flake8 fixes 2017-04-20 21:14:23 +10:00
BufrStubImagePlugin.py Only need to read 4 bytes 2017-03-04 16:39:03 +02:00
ContainerIO.py Converted documentation 2016-09-24 19:10:46 +10:00
CurImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
DcxImagePlugin.py add _close_exclusive_fp_after_load flag 2017-04-03 08:06:58 -07:00
DdsImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
EpsImagePlugin.py Removed unused imports 2017-03-03 21:38:19 +11:00
ExifTags.py Moved EXIF tag to be in hex order 2016-04-19 19:50:28 +10:00
features.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
FitsStubImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
FliImagePlugin.py add _close_exclusive_fp_after_load flag 2017-04-03 08:06:58 -07:00
FontFile.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
FpxImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
FtexImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
GbrImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
GdImageFile.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
GifImagePlugin.py Flake8 fixes 2017-04-20 21:14:23 +10:00
GimpGradientFile.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
GimpPaletteFile.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
GribStubImagePlugin.py Python 3 fix 2017-03-04 13:52:14 +02:00
Hdf5StubImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
IcnsImagePlugin.py Send unwanted subprocess output to /dev/null 2017-01-26 17:31:29 -08:00
IcoImagePlugin.py Remove unnecessary calls to dict.keys() 2017-05-28 09:55:38 -07:00
Image.py Remove unnecessary calls to dict.keys() 2017-05-28 09:55:38 -07:00
ImageChops.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
ImageCms.py Flake8 fixes 2017-04-20 21:14:23 +10:00
ImageColor.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
ImageDraw.py Corrected ImageDraw floodfill exception type 2017-03-03 19:45:55 +11:00
ImageDraw2.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
ImageEnhance.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
ImageFile.py Update ImageFile.py 2017-05-13 12:07:16 -04:00
ImageFilter.py Fixed redefinition of built-in 2015-04-24 16:02:39 +10:00
ImageFont.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
ImageGrab.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
ImageMath.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
ImageMode.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
ImageMorph.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
ImageOps.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
ImagePalette.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
ImagePath.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
ImageQt.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
ImageSequence.py Merge pull request #1686 from radarhere/seek 2016-01-31 09:08:09 -08:00
ImageShow.py Fix option typo 2017-05-14 12:14:29 +03:00
ImageStat.py Replaced old-style classes 2015-05-27 00:07:21 +10:00
ImageTk.py Fix import of tkinter/Tkinter 2017-03-22 10:32:42 -07:00
ImageTransform.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
ImageWin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
ImImagePlugin.py add _close_exclusive_fp_after_load flag 2017-04-03 08:06:58 -07:00
ImtImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
IptcImagePlugin.py Remove unnecessary calls to dict.keys() 2017-05-28 09:55:38 -07:00
Jpeg2KImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
JpegImagePlugin.py Fix for file with DPI in EXIF but not metadata, and XResolution is an int rather than tuple 2017-04-11 14:07:31 +03:00
JpegPresets.py Changed http URL to https 2017-02-18 15:44:22 +11:00
McIdasImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
MicImagePlugin.py add _close_exclusive_fp_after_load flag 2017-04-03 08:06:58 -07:00
MpegImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
MpoImagePlugin.py add _close_exclusive_fp_after_load flag 2017-04-03 08:06:58 -07:00
MspImagePlugin.py Flake8 fixes 2017-04-20 21:14:23 +10:00
OleFileIO.py Removed shebang line from OleFileIO 2016-12-25 20:18:50 +01:00
PaletteFile.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
PalmImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
PcdImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
PcfFontFile.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
PcxImagePlugin.py Removed unused print_function imports 2017-01-18 20:06:21 +11:00
PdfImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
PixarImagePlugin.py Test pixar for similarity 2017-02-28 08:27:53 +02:00
PngImagePlugin.py Removed unused imports 2017-03-03 21:38:19 +11:00
PpmImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
PsdImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
PSDraw.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
PyAccess.py Added tests 2017-03-03 19:45:55 +11:00
SgiImagePlugin.py Flake8 fixes 2017-04-20 21:14:23 +10:00
SpiderImagePlugin.py add _close_exclusive_fp_after_load flag 2017-04-03 08:06:58 -07:00
SunImagePlugin.py Flake8 fixes 2017-04-20 21:14:23 +10:00
TarIO.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
TgaImagePlugin.py Removed unused imports 2017-03-03 21:38:19 +11:00
TiffImagePlugin.py Flake8 fixes 2017-04-20 21:14:23 +10:00
TiffTags.py Drop support for Python 2.6 2016-11-22 04:23:55 -08:00
WalImageFile.py Merge pull request #1822 from radarhere/unused 2017-02-26 10:05:19 +02:00
WebPImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
WmfImagePlugin.py Flake8 fixes 2017-04-20 21:14:23 +10:00
XbmImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
XpmImagePlugin.py close files after loading for some file types 2017-03-12 20:05:20 +00:00
XVThumbImagePlugin.py Python 3 fix 2017-03-04 23:28:08 +02:00