Skip to content

Replaced .format{}/% with f-strings in core/tools/datetime.py #30440

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

Conversation

JMBurley
Copy link
Contributor

@JMBurley JMBurley commented Dec 24, 2019

Modified to python3 format strings
ref: #29547

Modifeid to python3 format strings
ref: pandas-dev#29547
@JMBurley
Copy link
Contributor Author

suggest labels clean & style for this pull request, & part of the 1.0 milestone.

`black pandas` altered the code formatting
`black pandas` auto-formatting update.  Changes line breaks due to f-strings being more concise.  Some of the changes were stupid and I have taken out the extra `" "` on single line `raise` statements.
remove trailing whitespace, join() not performed inline in f-strings.

update passes `black pandas` test
@alimcmaster1 alimcmaster1 added Clean Code Style Code style, linting, code_checks labels Dec 24, 2019
@alimcmaster1 alimcmaster1 added this to the 1.0 milestone Dec 24, 2019
Copy link
Member

@alimcmaster1 alimcmaster1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jreback jreback merged commit 8fad60d into pandas-dev:master Dec 24, 2019
@jreback
Copy link
Contributor

jreback commented Dec 24, 2019

thanks @JMBurley

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Clean Code Style Code style, linting, code_checks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants