Example #1
0
 def __init__(self, path, cmdline):
   # We can't pass non-ASCII through docstrings (and path is
   # in an unknown encoding anyway), but avoid double separators on
   # Windows
   docpath = stringutil.escapestr(path).replace(b'\\\\', b'\\')
   self.__doc__ %= {r'path': pycompat.sysstr(stringutil.uirepr(docpath))}
   self._cmdline = cmdline
Example #2
0
 def __init__(self, path, cmdline):
     # We can't pass non-ASCII through docstrings (and path is
     # in an unknown encoding anyway), but avoid double separators on
     # Windows
     docpath = stringutil.escapestr(path).replace(b'\\\\', b'\\')
     self.__doc__ %= {r'path': pycompat.sysstr(stringutil.uirepr(docpath))}
     self._cmdline = cmdline
Example #3
0
 def __init__(self, path, cmdline):
     # We can't pass non-ASCII through docstrings (and path is
     # in an unknown encoding anyway)
     docpath = stringutil.escapestr(path)
     self.__doc__ %= {r'path': pycompat.sysstr(stringutil.uirepr(docpath))}
     self._cmdline = cmdline