summaryrefslogtreecommitdiff
path: root/pygments/util.py
diff options
context:
space:
mode:
authorTim Hatch <tim@timhatch.com>2015-10-14 12:08:43 -0700
committerTim Hatch <tim@timhatch.com>2015-10-14 12:08:43 -0700
commit96990f584f1e14c9c68b96c967b9f31f34ef33bb (patch)
tree25c9760b29e56e186d91766d6803c324c313db93 /pygments/util.py
parent697b7a780f5b3312bc27728a095c6eecd4907d5b (diff)
downloadpygments-96990f584f1e14c9c68b96c967b9f31f34ef33bb.tar.gz
Fixes noted by pylint, mostly.
Diffstat (limited to 'pygments/util.py')
-rw-r--r--pygments/util.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/util.py b/pygments/util.py
index c464e17c..0859c05d 100644
--- a/pygments/util.py
+++ b/pygments/util.py
@@ -122,7 +122,7 @@ def make_analysator(f):
def shebang_matches(text, regex):
- """Check if the given regular expression matches the last part of the
+ r"""Check if the given regular expression matches the last part of the
shebang if one exists.
>>> from pygments.util import shebang_matches
@@ -160,7 +160,7 @@ def shebang_matches(text, regex):
if x and not x.startswith('-')][-1]
except IndexError:
return False
- regex = re.compile('^%s(\.(exe|cmd|bat|bin))?$' % regex, re.IGNORECASE)
+ regex = re.compile(r'^%s(\.(exe|cmd|bat|bin))?$' % regex, re.IGNORECASE)
if regex.search(found) is not None:
return True
return False