Skip to content

docs: fix Python 2 leftovers in docstrings - #182

Merged
beaufour merged 1 commit into
masterfrom
fix/python2-leftovers
Oct 27, 2026
Merged

beaufour merged 1 commit into
masterfrom
fix/python2-leftovers

Conversation

@beaufour

Copy link
Copy Markdown
Collaborator

Summary

Removes two Python 2 leftovers that would break under any py3 doctest runner and read oddly in the rendered docs:

  • flickr_api/auth.py module docstring: print ('http://…') (a py2 print-statement artifact, note the stray spacing) replaced with >>> print(a.get_authorization_url('write')) plus its expected URL output.
  • flickr_api/objects.py Walker docstring: >>> print photo.title py2 syntax in the example loops replaced with ... print(photo.title).

No code behavior change; docstrings only.

Test Plan

  • uv run pytest: 291 passed locally
  • CI green

Automated prep by Hermes maintainer.

- auth.py: replace py2-style 'print  (...)' output line with a py3
  print() call showing the expected authorization URL
- objects.py (Walker): use '...' continuation and print() in doctest
  examples instead of py2 'print' statement syntax

No code behavior change.
@beaufour
beaufour merged commit 4aba261 into master Oct 27, 2026
5 checks passed
@beaufour
beaufour deleted the fix/python2-leftovers branch October 27, 2026 12:43
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.

1 participant