# HG changeset patch # User Benoit Boissinot # Date 2009-11-02 16:54:19 # Node ID e4211db457c0815d25e627a0cd3b922d68d61d27 # Parent 8269fe2d48f6caa7808242803d64b7415ba0745a byterange: backport fix from upstream diff --git a/mercurial/byterange.py b/mercurial/byterange.py --- a/mercurial/byterange.py +++ b/mercurial/byterange.py @@ -261,6 +261,8 @@ class FTPRangeHandler(urllib2.FTPHandler host, port = splitport(host) if port is None: port = ftplib.FTP_PORT + else: + port = int(port) # username/password handling user, host = splituser(host)