summaryrefslogtreecommitdiff
path: root/sphinx/util/logging.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Migrate to py3 style type annotation: sphinx.util.loggingTakeshi KOMIYA2019-06-031-76/+40
|
* Clean up import for annotationsTakeshi KOMIYA2019-03-061-1/+0
|
* Merge branch '1.8'Takeshi KOMIYA2019-01-181-1/+1
|\
| * Fix mypy violationsTakeshi KOMIYA2019-01-171-1/+1
| |
* | Merge branch '1.8'Takeshi KOMIYA2019-01-021-1/+1
|\ \ | |/
| * A happy new year!Takeshi KOMIYA2019-01-021-1/+1
| |
* | Merge pull request #5509 from stephenfin/remove-future-importsTakeshi KOMIYA2018-12-171-1/+0
|\ \ | | | | | | Remove future imports
| * | py3: Remove (most) __future__ importsStephen Finucane2018-12-171-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There were two used: - print_function - absolute_import Both of these are mandatory in Python 3.0 onwards [1] and can therefore be removed...mostly. Unfortunately, mypy is still running in Python 2.7 mode, meaning we need the 'print_function' future wherever we're calling 'print' with the 'file' argument. There's also a single 'absolute_import' future that must be retained as its removal breaks a test for as-yet unknown reasons. TODOs are added to resolve both issues in the future. [1] https://docs.python.org/3/library/__future__.html Signed-off-by: Stephen Finucane <stephen@that.guru>
* | | Remove unnecessary encoding cookie from Python source filesJon Dufresne2018-12-161-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.
* | Use Python 3 super() argument-less syntaxJon Dufresne2018-12-151-10/+10
| | | | | | | | | | | | The form is less verbose and more idiomatic for Python 3 only code. https://docs.python.org/3/library/functions.html#super
* | Replace all "unicode" type by "str"Takeshi KOMIYA2018-12-151-15/+14
| |
* | Move to py3 mode for mypy (and remove many "type: ignore" comments)Takeshi KOMIYA2018-12-151-2/+2
| |
* | Add sphinx.util.typing:unicode to help mypy-3 migrationTakeshi KOMIYA2018-11-241-0/+1
| |
* | logging: Add prefixed_warnings() helperTakeshi KOMIYA2018-10-171-0/+62
| |
* | Merge branch '1.8'Takeshi KOMIYA2018-10-161-2/+3
|\ \ | |/
| * Fix mypy violationsTakeshi KOMIYA2018-10-161-2/+3
| |
* | Merge branch 'master' into HEADTakeshi KOMIYA2018-09-221-30/+2
|\ \
| * | refactoring: Drop PY2 and PY3 flagsTakeshi KOMIYA2018-09-221-30/+2
| |/
* | Remove unnecessary object from class definitionsJon Dufresne2018-09-111-3/+3
|/ | | | | In Python 3, all classes are new-style classes. The object in the definition is redundant and unnecessary.
* Close #4976: ``SphinxLoggerAdapter.info()`` now supports ``location`` parameterTakeshi KOMIYA2018-06-261-10/+34
|
* Merge branch 1.7shimizukawa2018-05-251-1/+1
|\
| * Fix #5007: sphinx-build crashes when error log contains a "%" characterTakeshi KOMIYA2018-05-241-1/+1
| |
* | move ``get_full_module_name`` and ``repr_domxml`` functions from logging to ↵shimizukawa2018-05-041-32/+2
| | | | | | | | nodes. by review on https://github.com/sphinx-doc/sphinx/pull/4918#discussion_r185838236.
* | add debug log for patching/extracting i18n nodes (#4918)Takayuki SHIMIZUKAWA2018-05-021-2/+32
| | | | | | | | After fixing #4919, sphinx/util/logging.py:L120 must be commented-in and next L121 line will be removed.
* | Fix typos in a docstring (refs: #4901)jfbu2018-04-251-3/+3
| |
* | Merge branch '1.7'Takeshi KOMIYA2018-03-181-2/+2
|\ \ | |/
| * Revert "Use typing.TYPE_CHECKING for typehints"Takeshi KOMIYA2018-03-131-2/+2
| | | | | | | | This reverts commit a073e17537c2aacaac305feadea58d4473ec97f4.
* | Merge branch '1.7'Takeshi KOMIYA2018-02-181-2/+2
|\ \ | |/
| * Use typing.TYPE_CHECKING for typehintsTakeshi KOMIYA2018-02-141-2/+2
| |
* | Merge branch '1.7-release'Takeshi KOMIYA2018-01-311-2/+2
|\ \ | |/
| * Use flake8-import-orderTakeshi KOMIYA2018-01-281-2/+2
| |
* | doc: Move sphinx.logging API docs to codeStephen Finucane2018-01-201-5/+24
|/ | | | Signed-off-by: Stephen Finucane <stephen@that.guru>
* Fix #4081: Warnings and errors colored the same when buildingTakeshi KOMIYA2018-01-081-1/+1
|
* A happy new year!Takeshi KOMIYA2018-01-011-1/+1
|
* Fix mypy violationsTakeshi KOMIYA2017-12-161-2/+2
|
* Fix mypy violationTakeshi KOMIYA2017-12-121-1/+1
|
* Fix #4279: Sphinx crashes with pickling error when run with multiple ↵Takeshi KOMIYA2017-12-101-9/+18
| | | | processes and remote image
* Fix #3919: become silent if logging settings are clearedTakeshi KOMIYA2017-10-231-7/+19
|
* Fix mypy violationsTakeshi KOMIYA2017-10-071-3/+3
|
* Fix #4070, #4111: crashes when the warning message contains format strings ↵Takeshi KOMIYA2017-10-051-3/+7
| | | | (again)
* Fix #4070: crashes when the warning message contains format stringsTakeshi KOMIYA2017-09-241-2/+3
|
* Fix #3926: Add ``autodoc_warningiserror`` to suppress the behavior of ``-W`` ↵Takeshi KOMIYA2017-07-151-1/+34
| | | | option
* Fix #3858: Some warnings are not colored when using --color optionTakeshi KOMIYA2017-06-101-0/+1
|
* Fix #3758: Sphinx crashed if logs are emitted in conf.pyTakeshi KOMIYA2017-05-181-1/+7
|
* Show the location if warniserror enabledTakeshi KOMIYA2017-04-201-2/+6
|
* Fix mypy violationsTakeshi KOMIYA2017-03-261-2/+2
|
* Fix app.messagelog does not filled after moving to logging moduleTakeshi KOMIYA2017-03-261-0/+18
|
* Merge branch 'stable'Takeshi KOMIYA2017-03-261-1/+1
|\
| * Year++Takeshi KOMIYA2017-03-261-1/+1
| |
* | Upgrade to mypy-0.5Takeshi KOMIYA2017-03-031-1/+1
| |