Show More
@@ -38,7 +38,7 b' encoding.encoding which is decided by Me' | |||||
38 | setting or HGENCODING. |
|
38 | setting or HGENCODING. | |
39 | ''' |
|
39 | ''' | |
40 |
|
40 | |||
41 | import os |
|
41 | import os, sys | |
42 | from mercurial.i18n import _ |
|
42 | from mercurial.i18n import _ | |
43 | from mercurial import util, encoding |
|
43 | from mercurial import util, encoding | |
44 |
|
44 | |||
@@ -79,10 +79,8 b' def wrapper(func, args):' | |||||
79 | " %s encoding\n") % (encoding.encoding)) |
|
79 | " %s encoding\n") % (encoding.encoding)) | |
80 |
|
80 | |||
81 | def wrapname(name): |
|
81 | def wrapname(name): | |
82 |
|
|
82 | module, name = name.rsplit('.', 1) | |
83 |
module = |
|
83 | module = sys.modules[module] | |
84 | name = name[idx+1:] |
|
|||
85 | module = globals()[module] |
|
|||
86 | func = getattr(module, name) |
|
84 | func = getattr(module, name) | |
87 | def f(*args): |
|
85 | def f(*args): | |
88 | return wrapper(func, args) |
|
86 | return wrapper(func, args) | |
@@ -97,7 +95,8 b' def wrapname(name):' | |||||
97 | # they use result of os.path.split() |
|
95 | # they use result of os.path.split() | |
98 | funcs = '''os.path.join os.path.split os.path.splitext |
|
96 | funcs = '''os.path.join os.path.split os.path.splitext | |
99 | os.path.splitunc os.path.normpath os.path.normcase os.makedirs |
|
97 | os.path.splitunc os.path.normpath os.path.normcase os.makedirs | |
100 |
util.endswithsep util.splitpath util.checkcase |
|
98 | mercurial.util.endswithsep mercurial.util.splitpath mercurial.util.checkcase | |
|
99 | mercurial.util.fspath''' | |||
101 |
|
100 | |||
102 | # codec and alias names of sjis and big5 to be faked. |
|
101 | # codec and alias names of sjis and big5 to be faked. | |
103 | problematic_encodings = '''big5 big5-tw csbig5 big5hkscs big5-hkscs |
|
102 | problematic_encodings = '''big5 big5-tw csbig5 big5hkscs big5-hkscs |
General Comments 0
You need to be logged in to leave comments.
Login now