aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2015-10-07 04:37:09 -0400
committerAnthony G. Basile <blueness@gentoo.org>2015-10-07 04:37:09 -0400
commit56bfb6c2fbb15dbc1b9bd2b618a47cc82d5f9a6c (patch)
treed29f79fabf481e08690a455170d052429f9982c6 /grs/Interpret.py
parentlint: remove unused imports. (diff)
downloadgrss-56bfb6c2fbb15dbc1b9bd2b618a47cc82d5f9a6c.tar.gz
grss-56bfb6c2fbb15dbc1b9bd2b618a47cc82d5f9a6c.tar.bz2
grss-56bfb6c2fbb15dbc1b9bd2b618a47cc82d5f9a6c.zip
lint: use raw strings with regexes.
Diffstat (limited to 'grs/Interpret.py')
-rw-r--r--grs/Interpret.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/grs/Interpret.py b/grs/Interpret.py
index fd36650..db5bdd4 100644
--- a/grs/Interpret.py
+++ b/grs/Interpret.py
@@ -162,14 +162,14 @@ class Interpret(Daemon):
line_number += 1
# Skip lines with initial # as comments.
- m = re.search('^(#).*$', l)
+ m = re.search(r'^(#).*$', l)
if m:
continue
# For a release run, execute every line of the build script.
# For an update run, exexute only lines with a leading +.
ignore_stamp = False
- m = re.search('^(\+)(.*)$', l)
+ m = re.search(r'^(\+)(.*)$', l)
if m:
# There is a leading +, so remove it and skip if doing an update run
ignore_stamp = self.update_run
@@ -187,7 +187,7 @@ class Interpret(Daemon):
# single 'verb', or a 'verb obj' pair. While restrictive,
# its good enough for now.
try:
- m = re.search('(\S+)\s+(\S+)', l)
+ m = re.search(r'(\S+)\s+(\S+)', l)
verb = m.group(1)
obj = m.group(2)
except AttributeError: