diff -r d60678a567a9 -r 328739ea70c3 hgext/share.py --- a/hgext/share.py Tue Jun 23 22:38:21 2015 -0700 +++ b/hgext/share.py Tue Jun 23 22:20:08 2015 -0700 @@ -84,7 +84,7 @@ """Returns whether this repo has shared bookmarks""" try: shared = repo.vfs.read('shared').splitlines() - except IOError, inst: + except IOError as inst: if inst.errno != errno.ENOENT: raise return False