changeset 9695:e4211db457c0

byterange: backport fix from upstream
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Mon, 02 Nov 2009 17:54:19 +0100
parents 8269fe2d48f6
children 8cce2c8a40b6
files mercurial/byterange.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/byterange.py	Mon Nov 02 10:20:04 2009 +0100
+++ b/mercurial/byterange.py	Mon Nov 02 17:54:19 2009 +0100
@@ -261,6 +261,8 @@
         host, port = splitport(host)
         if port is None:
             port = ftplib.FTP_PORT
+        else:
+            port = int(port)
 
         # username/password handling
         user, host = splituser(host)