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

MNT: Change % formatting to f-strings #1135

Merged
merged 1 commit into from Apr 24, 2023

Conversation

StefRe
Copy link
Contributor

@StefRe StefRe commented Apr 24, 2023

This is a follow-up to #1116:

  • change remaining old-style % formatting to f-strings (cases like '%s' % var or 'str1' 'str2 %s' % (var,) which were not handled by pyupgrade due to their potential ambiguity)
  • change logging.debug("... %s ..." % x) to logging.debug("... %s ...", x) for uniformity
  • remove some u string prefixes

- change remaining old-style % formatting to f-strings
  (cases like '%s' % var or 'str1' 'str2 %s' % (var,) which are not
  handled by pyupgrade due to their potential ambiguity)
- change logging.debug("... %s ..." % x) to logging.debug("... %s ...", x)
  for uniformity
- remove some u string prefixes
@larsoner larsoner merged commit 7bd5101 into sphinx-gallery:master Apr 24, 2023
15 checks passed
@larsoner
Copy link
Contributor

Thanks @StefRe !

@StefRe StefRe deleted the mnt/format branch April 25, 2023 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants