summaryrefslogtreecommitdiff
path: root/sphinx/builders/gettext.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge branch '2.0'Takeshi KOMIYA2019-03-211-0/+6
|\
| * Fix #6178: i18n: Captions missing in translations for hidden TOCsTakeshi KOMIYA2019-03-171-0/+6
| |
* | Rename find_catalog() to docname_to_domain()Takeshi KOMIYA2019-02-271-2/+2
|/
* Give "nonl=True" value to logging.info() instead of intTakeshi KOMIYA2019-01-191-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-2/+0
|\ \ | | | | | | Remove future imports
| * | py3: Remove (most) __future__ importsStephen Finucane2018-12-171-2/+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-5/+5
| | | | | | | | | | | | 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
| |
* | refactor: Replace six.StringIO by io.StringIOTakeshi KOMIYA2018-12-151-2/+1
| |
* | Add docutils-stubs to test depsTakeshi KOMIYA2018-12-151-1/+1
| |
* | Move to py3 mode for mypy (and remove many "type: ignore" comments)Takeshi KOMIYA2018-12-151-10/+9
| |
* | Simplify open() call by removing default modeJon Dufresne2018-12-111-2/+2
| | | | | | | | | | | | | | | | | | The open() function opens files in read-only text mode by default. Drop the mode argument to be slightly simpler and more idiomatic. https://docs.python.org/3/library/functions.html#open > The default mode is 'r' (open for reading text, synonym of 'rt').
* | Fix annotation of Catalog.add(); it takes an Element objectTakeshi KOMIYA2018-12-041-2/+2
| |
* | Fix annotations (minor fixes)Takeshi KOMIYA2018-12-031-3/+2
| |
* | refactor: Use super() to call methods of superclassTakeshi KOMIYA2018-11-281-4/+4
| |
* | Add sphinx.util.typing:unicode to help mypy-3 migrationTakeshi KOMIYA2018-11-241-1/+2
| |
* | Always prefer dict literals over calls to dict()Jon Dufresne2018-11-131-6/+6
| | | | | | | | | | Dict literals are always slightly faster and are idiomatic modern Python.
* | Merge branch '1.8'Takeshi KOMIYA2018-10-161-5/+9
|\ \ | |/
| * Fix #5493: gettext: crashed with broken templateTakeshi KOMIYA2018-10-101-5/+9
| |
* | Merge branch 'master' into HEADTakeshi KOMIYA2018-09-221-2/+2
|\ \
| * | Remove use of six.iteritems()Jon Dufresne2018-09-111-2/+2
| |/ | | | | | | In Python 3, dict.items() is always an iterator.
* | Remove unnecessary object from class definitionsJon Dufresne2018-09-111-2/+2
|/ | | | | In Python 3, all classes are new-style classes. The object in the definition is redundant and unnecessary.
* Merge branch '1.7'Takeshi KOMIYA2018-04-091-3/+2
|\
| * Fix #4783: Sphinx crashed when drives of srcdir and outdir are differentTakeshi KOMIYA2018-04-021-3/+2
| |
* | 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.
* | Make console and warning messages translatableTakeshi KOMIYA2018-03-031-5/+6
| |
* | refactor: Move pairindextypes to sphinx.domains.pythonTakeshi KOMIYA2018-03-031-1/+1
| |
* | Merge branch '1.7'Takeshi KOMIYA2018-02-201-4/+5
|\ \ | |/
| * Suppress a flake8 warning (E501)cocoatomo2018-02-191-1/+1
| |
| * Fix indentation violation (flake8 E114)cocoatomo2018-02-191-1/+1
| |
| * Have order on msgids in sphinx.pot deterministiccocoatomo2018-02-191-4/+5
| |
* | Merge branch '1.7'Takeshi KOMIYA2018-02-181-2/+2
|\ \ | |/
| * Use typing.TYPE_CHECKING for typehintsTakeshi KOMIYA2018-02-141-2/+2
| |
* | Update type annotationsTakeshi KOMIYA2018-02-041-0/+1
|/
* Use flake8-import-orderTakeshi KOMIYA2018-01-281-7/+7
|
* builders: Add 'Builder.epilog' optionStephen Finucane2018-01-111-0/+1
| | | | | | | | | | | | This allows builders to emit a final epilog message containing information such as where resulting files can be found. This is only emitted if the build was successful. This allows us to remove this content from the 'make_mode' tool and the legacy 'Makefile' and 'make.bat' templates. There's room for more dramatic simplification of the former, but this will come later. Signed-off-by: Stephen Finucane <stephen@that.guru>
* A happy new year!Takeshi KOMIYA2018-01-011-1/+1
|
* Update type annotations for new mypyTakeshi KOMIYA2017-05-071-2/+2
|
* Fix #3669: gettext builder fails with "ValueError: substring not found"Takeshi KOMIYA2017-04-271-8/+12
|
* Fix typoTakeshi KOMIYA2017-04-211-1/+1
|
* Merge branch 'stable'Takeshi KOMIYA2017-03-261-1/+1
|\
| * Year++Takeshi KOMIYA2017-03-261-1/+1
| |
* | Fix mypy violationsTakeshi KOMIYA2017-03-201-1/+2
| |
* | Add Builder.use_message_catalog flagTakeshi KOMIYA2017-03-201-0/+1
| |
* | Create an instance of builder before initialize envTakeshi KOMIYA2017-03-191-5/+2
| |
* | Upgrade to mypy-0.5Takeshi KOMIYA2017-03-031-2/+2
| |