use raw strings for regular expression patterns

This commit is contained in:
Josh Holtrop 2011-01-17 11:14:16 -05:00
parent 97b09411bd
commit 6152ccc582

2
jsvn
View File

@ -38,7 +38,7 @@ def findInPath(cmd):
def getSVNURL(svn):
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:
return m.group(1)
return ''