Skip to content

Commit

Permalink
Merge pull request ckan#8075 from ckan/Remove-references-to-Python-2.…
Browse files Browse the repository at this point in the history
…7-in-docs

Docs: remove Python 2.7 URL links
  • Loading branch information
wardi authored Feb 13, 2024
2 parents f2aa96e + 97cdc59 commit c867b1f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions doc/contributing/python.rst
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Imports
Logging
-------

We use `the Python standard library's logging module <https://docs.python.org/2.7/library/logging.html>`_
We use `the Python standard library's logging module <https://docs.python.org/3/library/logging.html>`_
to log messages in CKAN, e.g.::

import logging
Expand Down Expand Up @@ -106,7 +106,7 @@ replacement field, for example::

_(' ... {foo} ... {bar} ...').format(foo='foo-value', bar='bar-value')

.. _new .format() method: http://docs.python.org/2/library/stdtypes.html#str.format
.. _new .format() method: https://docs.python.org/3/library/stdtypes.html#str.format


Unicode handling
Expand Down
2 changes: 1 addition & 1 deletion doc/contributing/unicode.rst
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ prefix. Simply use ``ur`` instead::
For more information on string prefixes please refer to the
`Python documentation`_.

.. _Python documentation: https://docs.python.org/2.7/reference/lexical_analysis.html#string-literals
.. _Python documentation: https://docs.python.org/3/reference/lexical_analysis.html

.. note::

Expand Down
5 changes: 1 addition & 4 deletions doc/maintaining/background-tasks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -381,10 +381,7 @@ job ID, that will be done automatically for you.

Supporting both systems at once
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Not all CKAN installations will immediately update to CKAN 2.7. It might
therefore make sense for you to support both the new and the old job system.
That way you are ready when the old system is removed but can continue to
support older CKAN installations.
It might make sense to support both the RQ and the old Celery-based job system.

The easiest way to do that is to use `ckanext-rq
<https://github.com/davidread/ckanext-rq>`_, which provides a back-port of the
Expand Down

0 comments on commit c867b1f

Please sign in to comment.