Changeset 661e857 for fedd/federation/util.py
- Timestamp:
- Jan 31, 2013 3:40:03 PM (12 years ago)
- Branches:
- master
- Children:
- 5bd8f1b
- Parents:
- dcac546
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/util.py
rdcac546 r661e857 224 224 conn.putrequest('GET', po.path) 225 225 conn.endheaders() 226 if log:227 log.debug('Connecting')228 226 response = conn.getresponse() 229 if log:230 log.debug('Connected')231 227 232 228 lf = open("%s/%s" % (destdir, fn), "w") 233 if log:234 log.debug('initial read')235 229 buf = response.read(4096) 236 230 while buf: 237 231 lf.write(buf) 238 if log:239 log.debug('loop read')240 232 buf = response.read(4096) 241 233 lf.close()
Note: See TracChangeset
for help on using the changeset viewer.