Home | Trees | Indices | Help |
|
---|
|
2 # Try to open with urllib (http, ftp, file url) 3 import urllib 4 try: 5 return urllib.urlopen(source) 6 except (IOError, OSError): 7 pass 8 9 try: 10 return open(source) 11 except (IOError, OSError): 12 pass 13 14 import StringIO 15 return StringIO.StringIO(str(source))16 27
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Jul 25 02:24:44 2011 | http://epydoc.sourceforge.net |