[133107] contrib/pypi2port/pypi2port.py
gaurav at macports.org
gaurav at macports.org
Fri Feb 20 06:00:56 PST 2015
Revision: 133107
https://trac.macports.org/changeset/133107
Author: gaurav at macports.org
Date: 2015-02-20 06:00:55 -0800 (Fri, 20 Feb 2015)
Log Message:
-----------
contrib/pypi2port: Fixed naming bug for the XML-RPC client
Modified Paths:
--------------
contrib/pypi2port/pypi2port.py
Modified: contrib/pypi2port/pypi2port.py
===================================================================
--- contrib/pypi2port/pypi2port.py 2015-02-20 13:45:07 UTC (rev 133106)
+++ contrib/pypi2port/pypi2port.py 2015-02-20 14:00:55 UTC (rev 133107)
@@ -6,10 +6,10 @@
import os
import hashlib
import zipfile
-import progressbar as pb
-import requests
+# import progressbar as pb
+# import requests
try:
- import xmlrpc.client
+ import xmlrpclib
except ImportError:
import xmlrpc.client as xmlrpclib
import textwrap
@@ -20,7 +20,7 @@
import subprocess
-client = xmlrpc.client.ServerProxy('http://pypi.python.org/pypi')
+client = xmlrpclib.ServerProxy('http://pypi.python.org/pypi')
def list_all():
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150220/a60d7694/attachment.html>
More information about the macports-changes
mailing list