Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Clean up import for annotations | Takeshi KOMIYA | 2019-03-06 | 1 | -1/+1 | |
| | ||||||
* | Merge branch '1.8' | Takeshi KOMIYA | 2019-01-02 | 1 | -1/+1 | |
|\ | ||||||
| * | A happy new year! | Takeshi KOMIYA | 2019-01-02 | 1 | -1/+1 | |
| | | ||||||
* | | Replace EnvironmentError and IOError by OSError | Takeshi KOMIYA | 2018-12-19 | 1 | -4/+4 | |
| | | | | | | | | | | Since python 3.3, EnvironmentError and IOError were merged into OSError. | |||||
* | | Merge pull request #5804 from jdufresne/file-avoid-str | Takeshi KOMIYA | 2018-12-17 | 1 | -21/+7 | |
|\ \ | | | | | | | Remove unnecessary bytes/str type check in FileAvoidWrite.write() | |||||
| * | | Remove unnecessary bytes/str type check in FileAvoidWrite.write() | Jon Dufresne | 2018-12-16 | 1 | -21/+7 | |
| | | | | | | | | | | | | | | | All calls to FileAvoidWrite.write() always pass a text string. Additionally, the type signature only allows type str. | |||||
* | | | Remove unnecessary encoding cookie from Python source files | Jon Dufresne | 2018-12-16 | 1 | -1/+0 | |
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. | |||||
* | | Replace ENOENT errno checks with Python 3 FileNotFoundError | Jon Dufresne | 2018-12-15 | 1 | -2/+2 | |
| | | | | | | | | | | | | | | | | 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. | |||||
* | | Replace all "unicode" type by "str" | Takeshi KOMIYA | 2018-12-15 | 1 | -22/+21 | |
| | | ||||||
* | | Remove print_function feature | Takeshi KOMIYA | 2018-12-15 | 1 | -1/+0 | |
| | | ||||||
* | | Move to py3 mode for mypy (and remove many "type: ignore" comments) | Takeshi KOMIYA | 2018-12-15 | 1 | -4/+4 | |
| | | ||||||
* | | Merge pull request #5607 from tk0miya/smart_texinfo_conf_py | Takeshi KOMIYA | 2018-12-02 | 1 | -0/+6 | |
|\ \ | | | | | | | quickstart: Simplify generated conf.py (for texinfo) | |||||
| * | | quickstart: Simplify generated conf.py (for texinfo) | Takeshi KOMIYA | 2018-11-11 | 1 | -0/+6 | |
| | | | ||||||
* | | | Add sphinx.util.typing:unicode to help mypy-3 migration | Takeshi KOMIYA | 2018-11-24 | 1 | -0/+1 | |
| | | | ||||||
* | | | Simplify ensuredir() with Python3 stdlib features | Jon Dufresne | 2018-11-20 | 1 | -7/+1 | |
|/ / | | | | | | | | | | | | | | | | | - Simplify ensuredir() to equivalent os.makedir(name, exist_ok=True) - Do not check if a directory exists before calling ensuredir() (ensuredir() already handles it) - Add exist_ok argument to path.makedirs() to follow same pattern - Drop unnecessary .exists() check immediately before .isdir() - Add tests for ensuredir | |||||
* | | Merge branch '1.8' | Takeshi KOMIYA | 2018-11-01 | 1 | -4/+5 | |
|\ \ | |/ | ||||||
| * | Fix flake8 violation | Takeshi KOMIYA | 2018-10-28 | 1 | -1/+1 | |
| | | ||||||
| * | Merge pull request #5548 from jdemeyer/ensuredir_check_dir | Takeshi KOMIYA | 2018-10-28 | 1 | -2/+3 | |
| |\ | | | | | | | Fix ensuredir() in case of pre-existing file | |||||
| | * | Fix ensuredir() in case of pre-existing file | Jeroen Demeyer | 2018-10-17 | 1 | -2/+3 | |
| | | | ||||||
| * | | Fix #5471: Show appropriate warning for deprecated APIs | Takeshi KOMIYA | 2018-10-17 | 1 | -1/+1 | |
| |/ | ||||||
* | | Deprecate Python2 compat shim sphinx.util.osutil.walk() | Jon Dufresne | 2018-10-05 | 1 | -31/+4 | |
| | | | | | | | | | | Code should use os.walk() instead, which works with either str or bytes. All internal calls use str. | |||||
* | | Merge branch 'master' into HEAD | Takeshi KOMIYA | 2018-09-22 | 1 | -19/+9 | |
|\ \ | ||||||
| * | | refactoring: Drop PY2 and PY3 flags | Takeshi KOMIYA | 2018-09-22 | 1 | -18/+8 | |
| | | | ||||||
| * | | Merge branch '1.8' | Takeshi KOMIYA | 2018-09-20 | 1 | -1/+1 | |
| |\ \ | | |/ | ||||||
| | * | Fix mypy violations | Takeshi KOMIYA | 2018-09-18 | 1 | -1/+1 | |
| | | | ||||||
* | | | Remove unnecessary object from class definitions | Jon Dufresne | 2018-09-11 | 1 | -1/+1 | |
|/ / | | | | | | | | | In Python 3, all classes are new-style classes. The object in the definition is redundant and unnecessary. | |||||
* | | Remove use of Python 2 os.getcwdu() | Jon Dufresne | 2018-09-09 | 1 | -4/+5 | |
|/ | | | | | | | | | | | | | | os.getcwdu() is Python 2 only. It was removed from Python 3. As Sphinx is now Python 3 only, can remove the workaround. $ python2 -c 'import os; print(os.getcwdu)' <built-in function getcwdu> $ python3 -c 'import os; print(os.getcwdu)' Traceback (most recent call last): File "<string>", line 1, in <module> AttributeError: module 'os' has no attribute 'getcwdu' sphinx.util.osutil.getcwd() is now deprecated for removal. | |||||
* | Merge branch '1.7' | Takeshi KOMIYA | 2018-04-09 | 1 | -1/+8 | |
|\ | ||||||
| * | Fix #4783: Sphinx crashed when drives of srcdir and outdir are different | Takeshi KOMIYA | 2018-04-02 | 1 | -1/+8 | |
| | | ||||||
* | | Merge branch '1.7' | Takeshi KOMIYA | 2018-03-18 | 1 | -3/+2 | |
|\ \ | |/ | ||||||
| * | Revert "Use typing.TYPE_CHECKING for typehints" | Takeshi KOMIYA | 2018-03-13 | 1 | -3/+2 | |
| | | | | | | | | This reverts commit a073e17537c2aacaac305feadea58d4473ec97f4. | |||||
* | | Merge branch '1.7' | Takeshi KOMIYA | 2018-02-18 | 1 | -2/+3 | |
|\ \ | |/ | ||||||
| * | Use typing.TYPE_CHECKING for typehints | Takeshi KOMIYA | 2018-02-14 | 1 | -2/+3 | |
| | | ||||||
* | | util: Mark deprecated functions with warning | Stephen Finucane | 2018-02-07 | 1 | -2/+7 | |
| | | | | | | | | | | | | This ensures the functions can actually be removed as expected. Signed-off-by: Stephen Finucane <stephen@that.guru> | |||||
* | | Merge branch '1.7-release' | Takeshi KOMIYA | 2018-01-31 | 1 | -6/+7 | |
|\ \ | |/ | ||||||
| * | Use flake8-import-order | Takeshi KOMIYA | 2018-01-28 | 1 | -6/+7 | |
| | | ||||||
* | | Merge pull request #4469 from kurtmckee/use-https-urls | Takeshi KOMIYA | 2018-01-21 | 1 | -1/+1 | |
|\ \ | | | | | | | Use HTTPS URL's | |||||
| * | | Convert in-code HTTP URL's to HTTPS, including examples | Kurt McKee | 2018-01-20 | 1 | -1/+1 | |
| |/ | ||||||
* | | app: Centralize directory validation | Stephen Finucane | 2018-01-20 | 1 | -1/+6 | |
|/ | | | | | | | | | | This allows us to avoid duplication of code and ensure validation happens regardless of who's initializing the class. We introduce a new exception - ApplicationError - to indicate these kinds of issues. This subclasses SphinxError, meaning we don't need to modify our exception handling code. Signed-off-by: Stephen Finucane <stephen@that.guru> | |||||
* | A happy new year! | Takeshi KOMIYA | 2018-01-01 | 1 | -1/+1 | |
| | ||||||
* | Merge branch 'stable' | Takeshi KOMIYA | 2017-03-26 | 1 | -1/+1 | |
|\ | ||||||
| * | Year++ | Takeshi KOMIYA | 2017-03-26 | 1 | -1/+1 | |
| | | ||||||
* | | Upgrade to mypy-0.5 | Takeshi KOMIYA | 2017-03-03 | 1 | -1/+1 | |
| | | ||||||
* | | Fix mypy violations | Takeshi KOMIYA | 2017-02-08 | 1 | -3/+9 | |
| | | ||||||
* | | Merge branch 'stable' | Takeshi KOMIYA | 2017-01-12 | 1 | -2/+2 | |
|\ \ | |/ | ||||||
| * | Fix flake8 violations | Takeshi KOMIYA | 2017-01-12 | 1 | -1/+1 | |
| | | ||||||
| * | Fix flake8 violations | Takeshi KOMIYA | 2017-01-12 | 1 | -1/+1 | |
| | | ||||||
* | | Add type-check annotations to sphinx.util | Takeshi KOMIYA | 2016-11-16 | 1 | -4/+26 | |
|/ | ||||||
* | Fix #2919: Drop py26 support | Takeshi KOMIYA | 2016-09-15 | 1 | -2/+2 | |
| | ||||||
* | Refactor FileAvoidWrite | Takeshi KOMIYA | 2016-08-22 | 1 | -9/+3 | |
| |