diff --git a/presto2gemini.py b/presto2gemini.py index 278b1c9..606b828 100755 --- a/presto2gemini.py +++ b/presto2gemini.py @@ -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)