Changeset 88:3fdb6ad947ad for src/mlx/web.py
- Timestamp:
- 04/16/12 17:53:47 (12 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/web.py
r74 r88 337 337 result = Result() 338 338 339 f = urllib2.urlopen(url )339 f = urllib2.urlopen(url, timeout = 10.0) 340 340 341 341 status = readline(f) … … 375 375 url = "http://www.virtualairlines.hu/onlinegates_get.php" 376 376 377 f = urllib2.urlopen(url )377 f = urllib2.urlopen(url, timeout = 10.0) 378 378 result = Result() 379 379 result.fleet = Fleet(f) … … 407 407 ("kapu", gateNumber)]) 408 408 409 f = urllib2.urlopen(url, data )409 f = urllib2.urlopen(url, data, timeout = 10.0) 410 410 line = readline(f) 411 411 … … 434 434 url = "http://notams.euroutepro.com/notams.xml" 435 435 436 f = urllib2.urlopen(url )436 f = urllib2.urlopen(url, timeout = 10.0) 437 437 try: 438 438 xmlParser.parse(f) … … 466 466 ("mostRecentForEachStation", "constraint")]) 467 467 url += data 468 f = urllib2.urlopen(url )468 f = urllib2.urlopen(url, timeout = 10.0) 469 469 try: 470 470 result = Result()
Note:
See TracChangeset
for help on using the changeset viewer.