use raw strings for regular expression patterns

This commit is contained in:
Josh Holtrop committed 2011-01-17 11:14:16 -05:00
1 parent 97b09411bd
commit 6152ccc582
1 file changed
+1 -1
+1 -1
View File
@@ -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 ''