Takeshi KOMIYA
2597c4174e
Merge pull request #5796 from jdufresne/super
...
Use Python 3 super() argument-less syntax
2018-12-16 19:46:47 +09:00
Jean-François B
6395c7d242
Merge pull request #5790 from jfbu/latex_turnoff_lualatex_ligatures
...
Latex turnoff lualatex ligatures
2018-12-16 11:00:26 +01:00
Takeshi KOMIYA
f296f80931
Merge pull request #5795 from jdufresne/six-unichr
...
Remove use of six.unichr()
2018-12-16 10:27:16 +09:00
Takeshi KOMIYA
1c4197b020
Merge pull request #5797 from jdufresne/errno
...
Replace ENOENT errno checks with Python 3 FileNotFoundError
2018-12-16 10:26:44 +09:00
Takeshi KOMIYA
39f1b29649
Merge pull request #5798 from jdufresne/file-attr
...
Remove unnecessary check for type bytes
2018-12-16 10:10:54 +09:00
Takeshi KOMIYA
304a03907d
Merge pull request #5799 from jdufresne/dev-null
...
Use os.devnull; replace hard coded value
2018-12-16 10:09:48 +09:00
Takeshi KOMIYA
480015c531
Merge pull request #5802 from jdufresne/write-text-bytes
...
Remove unnecessary bytes type check from path.write_text()
2018-12-16 10:07:55 +09:00
Jon Dufresne
5b2bf19685
Remove unnecessary bytes type check from path.write_text()
...
All code passes type str to the method. Per the type signature, only str
is allowed.
2018-12-15 11:47:08 -08:00
Jon Dufresne
2646a88b1b
Use os.devnull; replace hard coded value
...
https://docs.python.org/3/library/os.html#os.devnull
2018-12-15 11:11:43 -08:00
Jon Dufresne
cc86f57f7f
Remove unnecessary check for type bytes
...
On Python 3, the __file__ attribute is always a string. See docs:
https://docs.python.org/3/reference/import.html#__file__
> __file__ is optional. If set, this attribute’s value must be a string.
2018-12-15 11:05:23 -08:00
Jon Dufresne
49d3a3c0c1
Replace ENOENT errno checks with Python 3 FileNotFoundError
...
The error is more specific and self documenting.
This removes the last use of sphinx.util.osutil.ENOENT, so it is now
deprecated for removal. sphinx.util.osutil.EEXIST was already unused so
that is deprecated as well.
2018-12-15 09:02:55 -08:00
Jon Dufresne
ade973f4e3
Use Python 3 super() argument-less syntax
...
The form is less verbose and more idiomatic for Python 3 only code.
https://docs.python.org/3/library/functions.html#super
2018-12-15 08:35:55 -08:00
Jon Dufresne
1f4fcd656b
Remove use of six.unichr()
...
Use Python 3 chr() instead.
2018-12-15 08:15:56 -08:00
Takeshi KOMIYA
72e96fe754
Merge pull request #5794 from tk0miya/refactor_html.escape
...
Replace pycompat.htmlescape() by html.escape()
2018-12-16 01:06:46 +09:00
Takeshi KOMIYA
6113261948
Merge pull request #5775 from tk0miya/5770_doctest_refers_highlight_language
...
Fix #5770 : doctest: Follow highlight_language on highlighting doctest block
2018-12-16 00:56:55 +09:00
Takeshi KOMIYA
357b1ce2e6
Replace pycompat.htmlescape() by html.escape()
2018-12-16 00:53:56 +09:00
Takeshi KOMIYA
c70e65fc6c
Merge branch 'master' into 5770_doctest_refers_highlight_language
2018-12-16 00:32:10 +09:00
Takeshi KOMIYA
79eec90f36
Merge pull request #5773 from tk0miya/fix_typehints_for_unicode
...
Replace all "unicode" type by "str"
2018-12-16 00:24:21 +09:00
jfbu
eb365898d2
Fix unescaped backslashes in LaTeX...
2018-12-15 15:59:54 +01:00
Takeshi KOMIYA
6bc357140d
Replace all "unicode" type by "str"
2018-12-15 23:57:43 +09:00
Takeshi KOMIYA
0031c9b482
Merge pull request #5789 from tk0miya/remove_print_function
...
Remove print_function feature
2018-12-15 23:26:11 +09:00
jfbu
7364e0c2fd
Update docs for LuaLaTeX
2018-12-15 15:16:43 +01:00
Takeshi KOMIYA
b56f4f9022
Remove print_function feature
2018-12-15 23:16:10 +09:00
jfbu
b99c2f8a9d
LaTeX: prevent LuaLaTeX from applying TeX ligatures (>>, <<,...)
...
Closes : #5179
2018-12-15 14:58:26 +01:00
Takeshi KOMIYA
415ebc15c5
Merge pull request #5784 from tk0miya/refactor_hack_for_py2
...
Refactor hack for py2
2018-12-15 22:40:46 +09:00
Takeshi KOMIYA
4d933716b8
Merge pull request #5785 from tk0miya/refactor_six.StringIO
...
refactor: Replace six.StringIO by io.StringIO
2018-12-15 22:03:16 +09:00
Takeshi KOMIYA
77e0139a26
Remove warnings for old python which does not support SNI
2018-12-15 22:02:12 +09:00
Takeshi KOMIYA
66fad4e22d
Remove a hack for py2 from testcode
2018-12-15 22:01:22 +09:00
Takeshi KOMIYA
3408351636
Remove a hack for py2 from TextWrapper
2018-12-15 22:01:22 +09:00
Takeshi KOMIYA
2aa9e5ed3a
Replace for-yield-loop by "yield from"
2018-12-15 22:01:22 +09:00
Takeshi KOMIYA
3f90794f22
Remove comments for py2
2018-12-15 21:44:17 +09:00
Takeshi KOMIYA
881cfbc82b
Remove a hack for py2 from isclassmethod()
2018-12-15 21:44:17 +09:00
Takeshi KOMIYA
6b24c069c3
Deprecate sphinx.util.inspect.Parameter
2018-12-15 21:44:17 +09:00
Takeshi KOMIYA
fd1dd13a50
refactor: Replace six.StringIO by io.StringIO
2018-12-15 21:00:38 +09:00
Takeshi KOMIYA
a1e845d964
Merge pull request #5777 from tk0miya/5720_deprecate_abbreviation_node
...
Deprecate abbreviation node (refs: #5720 )
2018-12-15 20:58:54 +09:00
Takeshi KOMIYA
41492066a3
Merge pull request #5782 from tk0miya/refactor_six.UserString
...
refactor: Replace six.UserString by collections.UserString
2018-12-15 20:58:16 +09:00
Takeshi KOMIYA
001a557fcf
Merge pull request #5781 from tk0miya/refactor_six.PY2
...
refactor: Drop six.PY2
2018-12-15 20:57:51 +09:00
Takeshi KOMIYA
66cd2aa33d
Merge pull request #5780 from tk0miya/refactor_six.zip_longest
...
refactor: Replace six.moves.zip_longest by itertools.zip_longest
2018-12-15 20:57:26 +09:00
Takeshi KOMIYA
de043ac5ce
Merge pull request #5779 from tk0miya/refactor_six.add_metaclass
...
refactor: Replace six.add_metaclass by __metaclass_ attribute
2018-12-15 20:24:11 +09:00
Takeshi KOMIYA
cf5b3b61e9
Merge pull request #5778 from tk0miya/refactor_six.integer_types
...
refactor: Replace six.integer_types by int
2018-12-15 20:23:54 +09:00
Takeshi KOMIYA
08bc847964
Deprecate abbreviation node (refs: #5720 )
2018-12-15 20:13:04 +09:00
Takeshi KOMIYA
e789080b54
refactor: Drop six.PY2
2018-12-15 20:08:39 +09:00
Takeshi KOMIYA
485983684e
refactor: Replace six.moves.zip_longest by itertools.zip_longest
2018-12-15 20:08:00 +09:00
Takeshi KOMIYA
d2e5061136
refactor: Replace six.UserString by collections.UserString
2018-12-15 20:07:08 +09:00
Takeshi KOMIYA
5f8b1ede8e
refactor: Replace six.add_metaclass by __metaclass_ attribute
2018-12-15 20:06:26 +09:00
Takeshi KOMIYA
b911a39a81
refactor: Replace six.integer_types by int
2018-12-15 20:05:33 +09:00
Jean-François B
661fb1de59
LaTeX: use Bjarne option of fncychap also if language is set to 'en' ( #5776 )
...
Closes : #5772
2018-12-15 11:37:56 +01:00
Takeshi KOMIYA
d6d4406ce9
Fix #5770 : doctest: Follow highlight_language on highlighting doctest block
2018-12-15 18:35:12 +09:00
Takeshi KOMIYA
a5dcca53f8
Merge pull request #5774 from cocoatomo/patch-1
...
Append my name and contribution
2018-12-15 18:02:13 +09:00
cocoatomo
2c26782795
Append my name and contribution
2018-12-15 13:58:35 +09:00