summaryrefslogtreecommitdiff
path: root/pygments/util.py
diff options
context:
space:
mode:
authorTim Hatch <tim@timhatch.com>2015-10-14 17:46:01 -0700
committerTim Hatch <tim@timhatch.com>2015-10-14 17:46:01 -0700
commitc1e48207c44e49ed0c0e45f81f4a4c19041d5fcb (patch)
treeb084ba7a352aac219249fb07366be69cdce97e24 /pygments/util.py
parent88627c9a5973f7b664448f0b166273dbf3b87db2 (diff)
parent2bfc536db8c705f73d72081ed436699915a502a3 (diff)
downloadpygments-c1e48207c44e49ed0c0e45f81f4a4c19041d5fcb.tar.gz
Merged in MadcapJake/pygments-main (pull request #499)
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