PEP 431: Resolve uses of the default role (#3394)

This commit is contained in:
Adam Turner 2023-09-01 20:26:41 +01:00 committed by GitHub
parent e9448dbb41
commit 3ea21da044
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -188,13 +188,13 @@ This function takes a name string that must be a string specifying a
valid zoneinfo time zone, i.e. "US/Eastern", "Europe/Warsaw" or "Etc/GMT".
If not given, the local time zone will be looked up. If an invalid zone name
is given, or the local time zone can not be retrieved, the function raises
`UnknownTimeZoneError`.
``UnknownTimeZoneError``.
The function also takes an optional path to the location of the zoneinfo
database which should be used. If not specified, the function will look for
databases in the following order:
1. Check if the `tzdata-update` module is installed, and then use that
1. Check if the ``tzdata-update`` module is installed, and then use that
database.
2. Use the database in ``/usr/share/zoneinfo``, if it exists.