bookmarks: restore python 2.4 compatibility
Remove py25 'try except finally' clause.
--- a/mercurial/bookmarks.py Wed Feb 29 17:43:03 2012 +0000
+++ b/mercurial/bookmarks.py Wed Feb 29 09:34:19 2012 +0100
@@ -129,11 +129,12 @@
def unsetcurrent(repo):
wlock = repo.wlock()
try:
- util.unlink(repo.join('bookmarks.current'))
- repo._bookmarkcurrent = None
- except OSError, inst:
- if inst.errno != errno.ENOENT:
- raise
+ try:
+ util.unlink(repo.join('bookmarks.current'))
+ repo._bookmarkcurrent = None
+ except OSError, inst:
+ if inst.errno != errno.ENOENT:
+ raise
finally:
wlock.release()