Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Doc/library/warnings.rst
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ Available Functions
lower.one_way(**kw)

This makes the warning refer to both the ``example.lower.one_way()`` and
``package.higher.another_way()`` call sites only from calling code living
``example.higher.another_way()`` call sites only from calling code living
outside of ``example`` package.

*source*, if supplied, is the destroyed object which emitted a
Expand Down
2 changes: 1 addition & 1 deletion Doc/reference/compound_stmts.rst
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ have ambiguous semantics.

It is not possible to mix :keyword:`except` and :keyword:`!except*`
in the same :keyword:`try`.
:keyword:`break`, :keyword:`continue` and :keyword:`return`
The :keyword:`break`, :keyword:`continue`, and :keyword:`return` statements
cannot appear in an :keyword:`!except*` clause.


Expand Down
8 changes: 7 additions & 1 deletion Lib/sysconfig/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,13 @@ def _init_non_posix(vars):
vars['EXE'] = '.exe'
vars['VERSION'] = _PY_VERSION_SHORT_NO_DOT
vars['BINDIR'] = os.path.dirname(_safe_realpath(sys.executable))
vars['TZPATH'] = ''
# No standard path exists on Windows for this, but we'll check
# whether someone is imitating a POSIX-like layout
check_tzpath = os.path.join(vars['prefix'], 'share', 'zoneinfo')
if os.path.exists(check_tzpath):
vars['TZPATH'] = check_tzpath
else:
vars['TZPATH'] = ''

#
# public APIs
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
:mod:`zoneinfo`: Check in ``<prefix>/share/zoneinfo`` for data files on Windows
Loading