예제 #1
0
파일: extdiff2.py 프로젝트: bukzor/dotfiles
 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
예제 #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
예제 #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