##// END OF EJS Templates
lint: fix failing code check...
Raphaël Gomès -
r47772:fceccc36 stable
parent child Browse files
Show More
@@ -438,7 +438,8 b" elif os.path.exists('.hg_archival.txt'):"
438 else:
438 else:
439 version = '0+hg' + kw.get('node', '')[:12]
439 version = '0+hg' + kw.get('node', '')[:12]
440 elif os.path.exists('mercurial/__version__.py'):
440 elif os.path.exists('mercurial/__version__.py'):
441 data = open('mercurial/__version__.py').read()
441 with open('mercurial/__version__.py') as f:
442 data = f.read()
442 version = re.search('version = b"(.*)"', data).group(1)
443 version = re.search('version = b"(.*)"', data).group(1)
443
444
444 if version:
445 if version:
General Comments 0
You need to be logged in to leave comments. Login now