comparison hgext/largefiles/lfutil.py @ 15171:547da6115d1d

largefiles: eliminate naked exceptions
author Matt Mackall <mpm@selenic.com>
date Thu, 29 Sep 2011 17:14:47 -0500
parents c1a4a3220711
children 8e115063950d
comparison
equal deleted inserted replaced
15170:c1a4a3220711 15171:547da6115d1d
101 101
102 # -- Private worker functions ------------------------------------------ 102 # -- Private worker functions ------------------------------------------
103 103
104 if os.name == 'nt': 104 if os.name == 'nt':
105 from mercurial import win32 105 from mercurial import win32
106 try: 106 linkfn = win32.oslink
107 linkfn = win32.oslink
108 except:
109 linkfn = win32.os_link
110 else:
111 linkfn = os.link
112 107
113 def link(src, dest): 108 def link(src, dest):
114 try: 109 try:
115 linkfn(src, dest) 110 linkfn(src, dest)
116 except OSError: 111 except OSError: