changeset 24306 | 6ddc86eedc3b |
parent 18597 | 542110817450 |
child 25660 | 328739ea70c3 |
--- a/mercurial/byterange.py Fri Mar 13 14:20:13 2015 -0400 +++ b/mercurial/byterange.py Fri Mar 13 17:00:06 2015 -0400 @@ -274,7 +274,11 @@ dirs = dirs[1:] try: fw = self.connect_ftp(user, passwd, host, port, dirs) - type = file and 'I' or 'D' + if file: + type = 'I' + else: + type = 'D' + for attr in attrs: attr, value = splitattr(attr) if attr.lower() == 'type' and \