Ticket #7581: text.py.diff
File text.py.diff, 686 bytes (added by , 15 years ago) |
---|
-
text.py
177 177 zfile.close() 178 178 return zbuf.getvalue() 179 179 180 # WARNING - be aware that compress_sequence does not achieve the same 181 # level of compression as compress_string 182 # 180 183 def compress_sequence(sequence, charset): 181 184 import cStringIO, zlib 182 185 import flushable_gzip as gzip … … 189 192 zfile.flush() 190 193 zbuf.seek(position) 191 194 yield zbuf.read() 195 196 position = zbuf.tell() 197 zfile.close() 198 zbuf.seek(position) 199 yield zbuf.read() 192 200 193 201 ustring_re = re.compile(u"([\u0080-\uffff])") 194 202