Commit Graph

11 Commits

Author SHA1 Message Date
Jon Dufresne
bade33c7e4 Remove unnecessary encoding cookie from Python source files
In Python 3, the default encoding of source files is utf-8. The encoding
cookie is now unnecessary and redundant so remove it. For more details,
see the docs:

https://docs.python.org/3/howto/unicode.html#the-string-type

> The default encoding for Python source code is UTF-8, so you can
> simply include a Unicode character in a string literal ...

Includes a fix for the flake8 header checks to stop expecting an
encoding cookie.
2018-12-16 12:22:12 -08:00
Takeshi KOMIYA
3a2418a827 refactoring: Drop PY2 and PY3 flags 2018-09-22 21:27:59 +09:00
Takeshi KOMIYA
0edcae1ff8 Fix #5019: autodoc: crashed by Form Feed Character 2018-06-10 21:08:21 +09:00
Takeshi KOMIYA
be8e2be47b Fix #4914: autodoc: Parsing error when using dataclasses without default values 2018-05-21 00:25:11 +09:00
Takeshi KOMIYA
245e7d7bab Fix #4812: autodoc ignores type annotated variables 2018-04-08 23:51:01 +09:00
Takeshi KOMIYA
f224f3ca25 Merge pull request #4157 from tk0miya/4156_parse_class_comment
Fix #4156: failed to parse class comment
2017-10-21 13:45:33 +09:00
Takeshi KOMIYA
7aab8c3b07 Fix #4156: failed to parse class comment 2017-10-19 22:24:40 +09:00
Takeshi KOMIYA
1dfe978fcb Support more complex starred asssignment case 2017-10-19 00:10:46 +09:00
Takeshi KOMIYA
4fdcae0584 Fix #4158: pycode.parser failed to parse starred assignment 2017-10-18 21:37:09 +09:00
Peter Cock
11d84b7895 pycode tests for multiple assignment via tuple/list 2017-10-13 14:21:13 +01:00
Takeshi KOMIYA
6900d19b71 pycode: Add new parser! 2017-07-26 20:51:40 +09:00