comparison roundup/cgi/client.py @ 4077:7d19ed05baa6

Fix issue2550517
author Stefan Seefeld <stefan@seefeld.name>
date Tue, 24 Feb 2009 05:07:03 +0000
parents 1e28d58c6d1c
children edf526c91412
comparison
equal deleted inserted replaced
4076:59d02edfaa9c 4077:7d19ed05baa6
1298 # Fallback to the "write" operation. 1298 # Fallback to the "write" operation.
1299 f = open(filename, 'rb') 1299 f = open(filename, 'rb')
1300 try: 1300 try:
1301 if offset: 1301 if offset:
1302 f.seek(offset) 1302 f.seek(offset)
1303 content = f.read(length) 1303 content = f.read(length)
1304 finally: 1304 finally:
1305 f.close() 1305 f.close()
1306 self.write(content) 1306 self.write(content)
1307 1307
1308 def setHeader(self, header, value): 1308 def setHeader(self, header, value):

Roundup Issue Tracker: http://roundup-tracker.org/