Commit Graph

14 Commits

Author SHA1 Message Date
Takeshi KOMIYA
c8074b4a5d Deprecate sphinx.util:detect_encoding() and ModuleAnalyzer.encoding 2019-12-27 22:08:32 +09:00
hkm
0a982d5ebd Old get_module_source API restored, new version moved to ModuleAnalyzer class, tests updated 2019-12-25 22:29:20 +03:00
kpnr
c4e60b5b9c
restore sys.path with <finally> statement 2019-12-16 21:17:16 +03:00
hkm
1ca9dacbfe Added test case for non ASCII & non UTF8 encoding Windows-1251 in test_pycode section 2019-12-15 21:47:57 +03:00
hkm
264329079b Test suite updated - encoding not detected when getting sources from native loader 2019-12-15 20:50:27 +03:00
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
35e1764025 Fix #5290: autodoc: failed to analyze source code in egg package 2018-09-06 22:22:01 +09:00
Takeshi KOMIYA
f7027049b1 Fix flake8 violations 2018-02-19 23:20:56 +09:00
Stephen Finucane
7c0723fd46 tests: Remove 'tests/run.py'
This is no longer necessary. One test needs to be modified to deal with
how 'python -m pytest' modifies the PATH.

Signed-off-by: Stephen Finucane <stephen@that.guru>
2017-12-29 13:02:31 +00:00
Takeshi KOMIYA
8683823536 pycode: Replace pgen2 by own parser 2017-07-26 20:51:58 +09:00
Takeshi KOMIYA
57667b5766 Add testcase for oneliner 2017-07-26 20:51:40 +09:00
Takeshi KOMIYA
ae3b761184 Add testcase for pycode interface 2017-07-26 20:51:40 +09:00
Takeshi KOMIYA
0df0a11cfa Add testcode for sphinx.pycode 2017-03-18 15:00:28 +09:00