Skip to content

Instantly share code, notes, and snippets.

@hpk42
Created August 9, 2013 12:54
Show Gist options
  • Save hpk42/6193405 to your computer and use it in GitHub Desktop.
Save hpk42/6193405 to your computer and use it in GitHub Desktop.
>>> import xmlrpclib
>>> xmlrpclib.ServerProxy("https://pypi.python.org/pypi")
<ServerProxy for pypi.python.org/pypi>
>>> proxy=_
>>> proxy.list_packages_with_serial()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/xmlrpclib.py", line 1224, in __call__
return self.__send(self.__name, args)
File "/usr/lib/python2.7/xmlrpclib.py", line 1578, in __request
verbose=self.__verbose
File "/usr/lib/python2.7/xmlrpclib.py", line 1264, in request
return self.single_request(host, handler, request_body, verbose)
File "/usr/lib/python2.7/xmlrpclib.py", line 1297, in single_request
return self.parse_response(response)
File "/usr/lib/python2.7/xmlrpclib.py", line 1471, in parse_response
p.close()
File "/usr/lib/python2.7/xmlrpclib.py", line 560, in close
self._parser.Parse("", 1) # end of data
xml.parsers.expat.ExpatError: unclosed token: line 1257, column 0
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment