summaryrefslogtreecommitdiff
path: root/coverage/phystokens.py
Commit message (Collapse)AuthorAgeFilesLines
* style: double quotesNed Batchelder2023-03-221-6/+6
|
* mypy: use __future__ uniformly in checked filesNed Batchelder2023-01-051-0/+2
|
* mypy: check python.pyNed Batchelder2022-12-291-2/+2
|
* mypy: use specialized type name for ints that are line numbersNed Batchelder2022-12-291-1/+2
|
* test: add phystokens.py to the mypy trainNed Batchelder2022-12-271-36/+42
|
* fix: certain strange characters caused reporting to fail. #1512Ned Batchelder2022-12-231-1/+2
| | | | | | It turns out that str.splitlines() will break text on some characters that file.readline() does not! Use readline() to read source files the same way that Python does.
* style: fix spellingNed Batchelder2022-11-281-1/+1
| | | | un-executed, white space, time stamp.
* refactor: no need for special handling of compiling unicode sourceNed Batchelder2022-11-061-30/+0
| | | | This was a holdover from Python 2 days.
* fix: don't cache a failed parseNed Batchelder2022-08-211-1/+5
| | | | Found by OSS-Fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=50381
* style: parens should indent the same as their opening lineNed Batchelder2022-05-011-1/+1
|
* style: use the official designation for utf-8Ned Batchelder2021-10-101-2/+2
| | | | | Yes, this is completely unimportant. Don't ask me why I bothered, I'm not really sure.
* feat: soft keywords are shown in bold in the HTML reportNed Batchelder2021-06-061-3/+36
| | | | | | | | The match and case soft keywords are shown in bold when they are keywords, and not when they are not. The underscore soft keyword is ignored, because it is harder to get right, and because it doesn't look that much different in bold anyway.
* refactor: pyupgrade --py36-plus coverage/*.pyNed Batchelder2021-05-021-2/+2
|
* refactor: remove more unneeded backward.py shimsNed Batchelder2021-05-011-3/+2
| | | | | | | | | | | | | | Gone are: - iitems - litems - iternext - to_bytes - to_string - binary_bytes - byte_to_int - bytes_to_ints - BUILTINS
* refactor: remove code explicitly choosing between py2 and py3Ned Batchelder2021-05-011-108/+2
|
* Use set literalsNed Batchelder2021-01-031-1/+1
|
* Fix unusual backslash token issue. #822Ned Batchelder2019-08-101-5/+4
|
* Update NOTICE link to GitHub.Ned Batchelder2018-06-241-1/+1
|
* Use a 2/3 name for unicodeNed Batchelder2016-11-231-2/+2
|
* A fix for coding declarations, bug #529Ned Batchelder2016-11-051-1/+5
|
* Fix another form-feed problem, #461Ned Batchelder2016-01-051-2/+1
|
* Fix error with double occurence of encoding declarationMax Linke2015-12-141-1/+1
| | | | | | If a file sets the encoding using both vim and emacs style we can't compile the source-code. This commit ensures that always both occurences are removed before we compile the source-code.
* Another edge case of encoding detection. #443Ned Batchelder2015-11-141-1/+1
|
* Properly handle filenames with non-ASCII characters. #432Ned Batchelder2015-10-251-0/+3
|
* Tweak neuter_encoding_declarationNed Batchelder2015-10-161-7/+2
|
* Do a better job decoding source files. #431Ned Batchelder2015-10-161-11/+5
|
* Make sure source_token_lines always returns Unicode strings for the token text.Ned Batchelder2015-08-111-1/+1
|
* Get rid of napoleon style docstrings, they don't format nicely.Ned Batchelder2015-07-261-8/+4
|
* Add license mention to the top of all files. #313.Ned Batchelder2015-07-241-0/+3
|
* Add more contractsNed Batchelder2015-06-161-3/+3
|
* Use more @contract, less assertNed Batchelder2015-05-171-1/+2
|
* Files with incorrect encoding declarations are no longer ignored. #351Ned Batchelder2015-05-171-1/+1
|
* All Python source is Unicode internally.Ned Batchelder2015-05-171-3/+39
| | | | | Unfortunately, this meant hacking around a silly Python 2 restriction (can't compile a Unicode string containing an encoding declaration).
* Fix bug with \f in HTML report. #360.Ned Batchelder2015-02-281-1/+4
|
* Collect all the nudgy environment checks into coverage.envNed Batchelder2015-01-181-2/+2
|
* Further consolidation of code reading Python source.Ned Batchelder2014-12-281-16/+0
|
* Move next/__next__ distinction into backward.pyNed Batchelder2014-12-281-7/+5
|
* Make source_encoding stricter about its arguments, and test it everywhereNed Batchelder2014-12-281-4/+15
|
* Refactor some of the encoding detectionNed Batchelder2014-12-271-15/+29
|
* Unify and clarify reading Python source. Probably broke .pyw filesNed Batchelder2014-12-261-11/+14
|
* Move some code, and fix pep8 thingsNed Batchelder2014-12-141-3/+50
|
* Source is always Unicode in HTML code. More refactoring to come.Ned Batchelder2014-12-121-0/+3
|
* Try out pylint spelling. Kinda noisy, but fixed some stuff.Ned Batchelder2014-11-271-6/+6
|
* Fix non-comment encoding detection.Anthony Sottile2014-06-291-1/+1
| | | | | --HG-- branch : fix_source_encoding
* Merged 4.0 to defaultNed Batchelder2013-12-131-8/+2
|\
| * We only run on 2.6, 2.7, 3.2, 3.3 now.Ned Batchelder2013-10-191-7/+2
| | | | | | | | | | --HG-- branch : 4.0
* | Cache generate_tokens to speed HTML reports.Ned Batchelder2013-10-261-2/+4
| |
* | Micro optimizations.Ned Batchelder2013-10-261-3/+3
|/
* Make everything work on py2.3 again (for the last time).Ned Batchelder2013-10-051-1/+3
|
* Improve and more fully test the first-blank-line decoding fix. Thanks, ↵Ned Batchelder2013-09-161-2/+2
| | | | Roger Hu.