Changeset 522 for pkpgcounter/trunk/pkpgpdls/pil.py
- Timestamp:
- 11/28/07 11:13:33 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pkpgcounter/trunk/pkpgpdls/pil.py
r520 r522 35 35 """Returns True if data is an image format supported by PIL, else False.""" 36 36 try : 37 image = Image.open(self. parent.filename)37 image = Image.open(self.filename) 38 38 except (IOError, OverflowError) : 39 39 return False … … 45 45 """Counts pages in an image file.""" 46 46 index = 0 47 image = Image.open(self. parent.filename)47 image = Image.open(self.filename) 48 48 try : 49 49 while True :