Changeset 6834 for anuga_core/source
- Timestamp:
- Apr 17, 2009, 3:52:58 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/utilities/system_tools.py
r6822 r6834 333 333 # We get here if there was a proxy error, get file through the proxy 334 334 335 ## This code is how we might handle a proxy which doesn't use authentication 336 ## CAN'T TEST THIS, SO NOT IMPLEMENTED 337 ## proxy = {'http': 'http://%s' % httpproxy} 338 ## try: 339 ## webget = urllib.urlopen(file_url, proxies=proxy) 340 ## else: 341 ## fd = open(file_name, 'wb') 342 ## while True: 343 ## data = webget.read(blocksize) 344 ## if len(data) == 0: 345 ## break 346 ## fd.write(data) 347 ## fd.close 348 ## webget.close() 349 335 350 # unpack auth info 336 351 try:
Note: See TracChangeset
for help on using the changeset viewer.