Show More
@@ -148,8 +148,8 b' def filecheck(path, proto):' | |||||
148 | # this by requesting a version-controlled URL we know can't exist and looking |
|
148 | # this by requesting a version-controlled URL we know can't exist and looking | |
149 | # for the svn-specific "not found" XML. |
|
149 | # for the svn-specific "not found" XML. | |
150 | def httpcheck(path, proto): |
|
150 | def httpcheck(path, proto): | |
151 | return ('<m:human-readable errcode="160013">' in |
|
151 | return ('<m:human-readable errcode="160013">' in | |
152 | urllib.urlopen('%s://%s/!svn/ver/0/.svn' % (proto, path)).read()) |
|
152 | urllib.urlopen('%s://%s/!svn/ver/0/.svn' % (proto, path)).read()) | |
153 |
|
153 | |||
154 | protomap = {'http': httpcheck, |
|
154 | protomap = {'http': httpcheck, | |
155 | 'https': httpcheck, |
|
155 | 'https': httpcheck, |
@@ -53,7 +53,7 b' def parse_patch_output(output_line):' | |||||
53 | if pf[0] == '`': |
|
53 | if pf[0] == '`': | |
54 | pf = pf[1:-1] # Remove the quotes |
|
54 | pf = pf[1:-1] # Remove the quotes | |
55 | else: |
|
55 | else: | |
56 | if pf.startswith("'") and pf.endswith("'") and " " in pf: |
|
56 | if pf.startswith("'") and pf.endswith("'") and " " in pf: | |
57 | pf = pf[1:-1] # Remove the quotes |
|
57 | pf = pf[1:-1] # Remove the quotes | |
58 | return pf |
|
58 | return pf | |
59 |
|
59 |
General Comments 0
You need to be logged in to leave comments.
Login now