J
just1coder
I am relatively new to Python ...
I have a script that uses urllib2 to open another XML file off of the
same server the PY file is living on.
urllib2.urlopen(url).read()
I changed a bit of it to use:
open(filename, 'r').read()
to open the file locally rather than making an HTTP call however the
file no longer works completely. It does load in the XML data without
fail but a certain section fails to render...
Is there any glaring mistake doing this?
I have a script that uses urllib2 to open another XML file off of the
same server the PY file is living on.
urllib2.urlopen(url).read()
I changed a bit of it to use:
open(filename, 'r').read()
to open the file locally rather than making an HTTP call however the
file no longer works completely. It does load in the XML data without
fail but a certain section fails to render...
Is there any glaring mistake doing this?