Commits

Yuya Nishihara committed 47ca4fe

insert stub function before accessing to library.zip

Comments (0)

Files changed (1)

hgext/fixfrozenexts.py

     return exts
 
 @_cached
-def _disabledpaths(orig, strip_init=False):
+def _disabledzippedpaths(strip_init=False):
     zf = zipfile.ZipFile(_libpath())
     try:
         return _listzippedexts(zf, strip_init)
     finally:
         zf.close()
 
+def _disabledpaths(orig, strip_init=False):
+    return _disabledzippedpaths(strip_init)
+
 def _extractzippeddoc(zf, path):
     """extract docstring from zipped *.pyo"""
     try:
         file.close()
 
 @_cached
-def _disabledhelp(orig, path):
+def _disabledzippedhelp(path):
     zf = zipfile.ZipFile(_libpath())
     try:
         doc = _extractzippeddoc(zf, path)
     finally:
         zf.close()
 
+def _disabledhelp(orig, path):
+    return _disabledzippedhelp(path)
+
 def extsetup():
     if not util.main_is_frozen():
         return