~pythonregexp2.7/python/issue2636-12

« back to all changes in this revision

Viewing changes to Lib/gzip.py

  • Committer: Jeffrey C. "The TimeHorse" Jacobs
  • Date: 2008-06-09 14:52:42 UTC
  • mfrom: (39033.1.3 Regexp-2.6)
  • Revision ID: darklord@timehorse.com-20080609145242-9m268zc6u87rp1vp
Merged in changes from the core Regexp branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
306
306
            raise IOError, "Incorrect length of data produced"
307
307
 
308
308
    def close(self):
 
309
        if self.fileobj is None:
 
310
            return
309
311
        if self.mode == WRITE:
310
312
            self.fileobj.write(self.compress.flush())
311
313
            write32u(self.fileobj, self.crc)