use raw strings for regular expression patterns
This commit is contained in:
parent
97b09411bd
commit
6152ccc582
2
jsvn
2
jsvn
@ -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 ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user