~lifeless/meliae/stuff

« back to all changes in this revision

Viewing changes to strip_duplicates.py

  • Committer: Robert Collins
  • Date: 2009-09-13 21:02:43 UTC
  • Revision ID: robertc@robertcollins.net-20090913210243-acer02s2kw68qfle
Add some flush calls to reduce things being left in memory.

Show diffs side-by-side

added added

removed removed

Lines of Context:
98
98
                outfile = open(args[1], 'wb')
99
99
        strip_duplicate(infile, outfile, insize)
100
100
    finally:
 
101
        outfile.flush()
101
102
        for cleanup in cleanups:
102
103
            cleanup()
103
104