Skip to content

Commit

Permalink
Activated MPO detection.
Browse files Browse the repository at this point in the history
Added MPO to the list to be checked. Removed the superfluous second os
import. Added OS X & Komodo work files to .gitignore.
  • Loading branch information
Feneric committed Jul 17, 2014
1 parent 53b7f62 commit 5857053
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,9 @@ docs/_build/
\#*#
.#*

#Komodo
*.komodoproject

#OS
.DS_Store

6 changes: 5 additions & 1 deletion PIL/Image.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,10 @@ def preinit():
from PIL import JpegImagePlugin
except ImportError:
pass
try:
from PIL import MpoImagePlugin
except ImportError:
pass
try:
from PIL import PpmImagePlugin
except ImportError:
Expand Down Expand Up @@ -554,7 +558,6 @@ def _copy(self):
self.readonly = 0

def _dump(self, file=None, format=None):
import os
import tempfile
suffix = ''
if format:
Expand Down Expand Up @@ -2228,6 +2231,7 @@ def open(fp, mode="r"):

for i in ID:
try:
print(ID)
factory, accept = OPEN[i]
if not accept or accept(prefix):
fp.seek(0)
Expand Down

0 comments on commit 5857053

Please sign in to comment.