Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: remove Unicode literals from docstrings #2604

Merged

Conversation

aucampia
Copy link
Member

Summary of changes

Unicode literals (u'ẋẏż') are redundant in Python 3 as all strings support Unicode. This change eliminates the use of Unicode literals from docstrings so that the ALLOW_UNICODE option flag is no longer needed for doctests.

See also:

Checklist

  • Checked that there aren't other open pull requests for
    the same change.
  • Checked that all tests and type checking passes.
  • Considered granting push permissions to the PR branch,
    so maintainers can fix minor issues and keep your PR up to date.

Unicode literals (`u'ẋẏż'`) are redundant in Python 3 as all strings
support Unicode. This change eliminates the use of Unicode literals from
docstrings so that the `ALLOW_UNICODE` option flag is no longer needed
for doctests.

See also:
- RDFLib#2383
- RDFLib#2378
@aucampia aucampia force-pushed the aucampia/20230925T2032-eliminate-ustrings branch from 9efe77c to 5cc6ae4 Compare September 25, 2023 18:41
@aucampia aucampia changed the title Remove Unicode literals from docstrings docs: remove Unicode literals from docstrings Sep 25, 2023
@aucampia aucampia merged commit cc7350f into RDFLib:main Sep 25, 2023
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