Skip to content

MNT: Change % formatting to f-strings#1135

Merged
larsoner merged 1 commit intosphinx-gallery:masterfrom
StefRe:mnt/format
Apr 24, 2023
Merged

MNT: Change % formatting to f-strings#1135
larsoner merged 1 commit intosphinx-gallery:masterfrom
StefRe:mnt/format

Conversation

@StefRe
Copy link
Copy Markdown
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
@larsoner
Copy link
Copy Markdown
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.

2 participants