comparison mercurial/localrepo.py @ 6411:34c51857ba4f

fix error spotted by pychecker
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Sun, 30 Mar 2008 20:21:46 +0200
parents 0d4e068e9e52
children cfeeac24fc1e 93e140dbcd44
comparison
equal deleted inserted replaced
6405:b8346ae5d64b 6411:34c51857ba4f
2073 raise util.Abort(_('the server sent an unknown error code')) 2073 raise util.Abort(_('the server sent an unknown error code'))
2074 self.ui.status(_('streaming all changes\n')) 2074 self.ui.status(_('streaming all changes\n'))
2075 l = fp.readline() 2075 l = fp.readline()
2076 try: 2076 try:
2077 total_files, total_bytes = map(int, l.split(' ', 1)) 2077 total_files, total_bytes = map(int, l.split(' ', 1))
2078 except ValueError, TypeError: 2078 except (ValueError, TypeError):
2079 raise util.UnexpectedOutput( 2079 raise util.UnexpectedOutput(
2080 _('Unexpected response from remote server:'), l) 2080 _('Unexpected response from remote server:'), l)
2081 self.ui.status(_('%d files to transfer, %s of data\n') % 2081 self.ui.status(_('%d files to transfer, %s of data\n') %
2082 (total_files, util.bytecount(total_bytes))) 2082 (total_files, util.bytecount(total_bytes)))
2083 start = time.time() 2083 start = time.time()