Wed Dec 21 13:47:50 UTC 2005 Alberto Bertogli * Indentation changes to the uncompression patch. diff -rN -u old-darcsweb/darcsweb.cgi new-darcsweb/darcsweb.cgi --- old-darcsweb/darcsweb.cgi 2013-07-27 11:17:38.000000000 +0000 +++ new-darcsweb/darcsweb.cgi 2013-07-27 11:17:38.000000000 +0000 @@ -753,14 +753,14 @@ realf = filter_file(config.repodir + '/_darcs/patches/' + hash) if not os.path.isfile(realf): return None - file = open(realf, 'rb') - if file.read(2) == '\x1f\x8b': - # file begins with gzip magic - file.close() - dsrc = gzip.open(realf) - else: - file.seek(0) - dsrc = file + file = open(realf, 'rb') + if file.read(2) == '\x1f\x8b': + # file begins with gzip magic + file.close() + dsrc = gzip.open(realf) + else: + file.seek(0) + dsrc = file return dsrc def get_darcs_diff(hash, fname = None):