use raw strings for regular expression patterns
This commit is contained in:
1 parent
97b09411bd
commit
6152ccc582
1 file changed
+1
-1
@@ -38,7 +38,7 @@ def findInPath(cmd):
|
|||||||
|
|
||||||
def getSVNURL(svn):
|
def getSVNURL(svn):
|
||||||
for line in Popen([svn, 'info'], stdout=PIPE).communicate()[0].split('\n'):
|
for line in Popen([svn, 'info'], stdout=PIPE).communicate()[0].split('\n'):
|
||||||
m = re.match('^URL:\s*(.*?)\s*$', line)
|
m = re.match(r'^URL:\s*(.*?)\s*$', line)
|
||||||
if m is not None:
|
if m is not None:
|
||||||
return m.group(1)
|
return m.group(1)
|
||||||
return ''
|
return ''
|
||||||
|
|||||||
Reference in new issue
Block a user