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

Replace modulo string formatting with f-strings #20

Open
scott-huberty opened this issue Jan 24, 2025 · 0 comments
Open

Replace modulo string formatting with f-strings #20

scott-huberty opened this issue Jan 24, 2025 · 0 comments

Comments

@scott-huberty
Copy link
Owner

scott-huberty commented Jan 24, 2025

e.g. this:

raise OSError("Could not load EDF api: %s" % why_not)

can be replaced with

 f"Could not load EDF api: {why_not}"

A lot of this codebase was written before f-strings were introduced (python 3.6). Since we require at least python 3.9 we can replace these with f-strings, which I think looks nicer.

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

No branches or pull requests

1 participant