summaryrefslogtreecommitdiff
path: root/coverage/phystokens.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2016-01-02 16:28:02 -0500
committerNed Batchelder <ned@nedbatchelder.com>2016-01-02 16:28:02 -0500
commita0aa685214e9cccc361cddafea937346bd6dfdad (patch)
treec089983f78e4d1a13282b28407450631c89ed64d /coverage/phystokens.py
parent3440e214df5ddd0f507ecd76c2350eb8d9dd6a75 (diff)
parent8b110d3a3f7fbddfcbdaa1b090776e0f388a312e (diff)
downloadpython-coveragepy-git-a0aa685214e9cccc361cddafea937346bd6dfdad.tar.gz
Merge in the default branch
--HG-- branch : ast-branch
Diffstat (limited to 'coverage/phystokens.py')
-rw-r--r--coverage/phystokens.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/coverage/phystokens.py b/coverage/phystokens.py
index b34b1c3b..5aa3402c 100644
--- a/coverage/phystokens.py
+++ b/coverage/phystokens.py
@@ -291,5 +291,5 @@ def compile_unicode(source, filename, mode):
@contract(source='unicode', returns='unicode')
def neuter_encoding_declaration(source):
"""Return `source`, with any encoding declaration neutered."""
- source = COOKIE_RE.sub("# (deleted declaration)", source, count=1)
+ source = COOKIE_RE.sub("# (deleted declaration)", source, count=2)
return source