comparison hgext/evolve.py @ 1679:6103f6ac8110

py3: change except from two comma to as notation
author timeless@gmail.com
date Wed, 20 Apr 2016 18:59:46 +0000
parents 1247d87a738d
children 7caa5f2040c5
comparison
equal deleted inserted replaced
1678:1247d87a738d 1679:6103f6ac8110
3936 f.close() 3936 f.close()
3937 3937
3938 def _evolvestateread(repo): 3938 def _evolvestateread(repo):
3939 try: 3939 try:
3940 f = repo.vfs('evolvestate') 3940 f = repo.vfs('evolvestate')
3941 except IOError, err: 3941 except IOError as err:
3942 if err.errno != errno.ENOENT: 3942 if err.errno != errno.ENOENT:
3943 raise 3943 raise
3944 return None 3944 return None
3945 try: 3945 try:
3946 versionblob = f.read(4) 3946 versionblob = f.read(4)