Skip to content

Fix Python 2 print statement in locale docs - #1523

Merged
akx merged 1 commit into
python-babel:masterfrom
PRIMITIFA:fix/locale-print
Nov 30, 2026
Merged

akx merged 1 commit into
python-babel:masterfrom
PRIMITIFA:fix/locale-print

Conversation

@PRIMITIFA

Copy link
Copy Markdown
Contributor

The month names example in docs/locale.rst still uses the Python 2 statement print name, which is a SyntaxError on Python 3 (python -m doctest docs/locale.rst fails there). Changed it to print(name); with babel 2.19.0 the loop prints the twelve Spanish month names the page shows.

@akx
akx merged commit 3a7d239 into python-babel:master Nov 30, 2026
@akx

akx commented Nov 30, 2026

Copy link
Copy Markdown
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants