mirror of
https://github.com/pypiserver/pypiserver
synced 2024-11-09 16:45:51 +01:00
import xmlrpclib.ServerProxy as replace for Server in Python2.7, update_directory = None, syntax result in a tuple but None and this code poison update in manage.py
This commit is contained in:
parent
5d2e56a529
commit
082702de73
@ -157,9 +157,9 @@ def main(argv=None):
|
||||
|
||||
c = pypiserver.Configuration(**pypiserver.default_config())
|
||||
|
||||
update_dry_run = True,
|
||||
update_directory = None,
|
||||
update_stable_only = True,
|
||||
update_dry_run = True
|
||||
update_directory = None
|
||||
update_stable_only = True
|
||||
|
||||
try:
|
||||
opts, roots = getopt.getopt(argv[1:], "i:p:a:r:d:P:Uuvxoh", [
|
||||
|
@ -12,6 +12,7 @@ if sys.version_info >= (3, 0):
|
||||
return Server(url)
|
||||
else:
|
||||
from xmlrpclib import Transport # @UnresolvedImport
|
||||
from xmlrpclib import ServerProxy
|
||||
import httplib # @UnresolvedImport
|
||||
import urllib
|
||||
|
||||
@ -45,7 +46,7 @@ else:
|
||||
transport.set_proxy(http_proxy_spec)
|
||||
else:
|
||||
transport = None
|
||||
return Server(url, transport=transport)
|
||||
return ServerProxy(url, transport=transport)
|
||||
|
||||
|
||||
def is_stable_version(pversion):
|
||||
|
Loading…
Reference in New Issue
Block a user