Mark regexps as regexps ("SyntaxWarning: invalid escape sequence...")
This commit is contained in:
parent
a57e78c6fc
commit
9d294b2cb5
@ -151,10 +151,10 @@ if input_ok:
|
||||
""", file=gemfile)
|
||||
for line in raw.readlines():
|
||||
line=line[:-1] # Chop end-of-line
|
||||
if re.search("^\s*#", line):
|
||||
if re.search(r"^\s*#", line):
|
||||
continue # Ignore comments
|
||||
else:
|
||||
match = re.search("^\s*:([a-zA-Z]+):\s*(.*)", line)
|
||||
match = re.search(r"^\s*:([a-zA-Z]+):\s*(.*)", line)
|
||||
if match:
|
||||
if match.group(1) == "Issued":
|
||||
issued = match.group(2)
|
||||
|
Loading…
x
Reference in New Issue
Block a user