Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

hglib: safe import of mercurial.util.WinIOError

Changeset 4e51663e564b

Parent 146d4709d764

by Steve Borho

Changes to one file · Browse files at 4e51663e564b Showing diff from parent 146d4709d764 Diff from another changeset...

Change 1 of 1 Show Entire File thgutil/​hglib.py Stacked
 
45
46
47
 
 
 
 
 
 
48
49
50
 
45
46
47
48
49
50
51
52
53
54
55
56
@@ -45,6 +45,12 @@
  from mercurial import version   hgversion = version.get_version()   +try: + from mercurial.util import WinIOError +except: + class WinIOError(Exception): + 'WinIOError stub' +  def toutf(s):   """   Convert a string to UTF-8 encoding