We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99a484f commit 0674289Copy full SHA for 0674289
1 file changed
src/inputstream.py
@@ -79,6 +79,13 @@ def openStream(self, source):
79
return open(source)
80
except: pass
81
82
+ # Try opening from the internet
83
+ try:
84
+ if source.startswith('http://'):
85
+ import urllib
86
+ source = urllib.urlopen(source).read()
87
+ except: pass
88
+
89
# Otherwise treat source as a string and convert to a file object
90
import cStringIO
91
stream = cStringIO.StringIO(str(source))
0 commit comments