Comments
Patch
@@ -46,11 +46,11 @@
raise norepo
# regular expressions for parsing monotone output
- space = r'\s*'
- name = r'\s+"((?:\\"|[^"])*)"\s*'
+ space = br'\s*'
+ name = br'\s+"((?:\\"|[^"])*)"\s*'
value = name
- revision = r'\s+\[(\w+)\]\s*'
- lines = r'(?:.|\n)+'
+ revision = br'\s+\[(\w+)\]\s*'
+ lines = br'(?:.|\n)+'
self.dir_re = re.compile(space + "dir" + name)
self.file_re = re.compile(space + "file" + name +
@@ -179,7 +179,7 @@
# :ext:user@host/home/user/path/to/cvsroot
if root.startswith(":ext:"):
root = root[5:]
- m = re.match(r'(?:([^@:/]+)@)?([^:/]+):?(.*)', root)
+ m = re.match(br'(?:([^@:/]+)@)?([^:/]+):?(.*)', root)
# Do not take Windows path "c:\foo\bar" for a connection strings
if os.path.isdir(root) or not m:
conntype = "local"