diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2016-01-02 16:28:02 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2016-01-02 16:28:02 -0500 |
commit | a0aa685214e9cccc361cddafea937346bd6dfdad (patch) | |
tree | c089983f78e4d1a13282b28407450631c89ed64d /coverage/phystokens.py | |
parent | 3440e214df5ddd0f507ecd76c2350eb8d9dd6a75 (diff) | |
parent | 8b110d3a3f7fbddfcbdaa1b090776e0f388a312e (diff) | |
download | python-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.py | 2 |
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 |