-
Notifications
You must be signed in to change notification settings - Fork 99
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
handle py2/py3 print statement vs function better (via user configurable option) #123
Conversation
``` | ||
|
||
* `*paths` - Accepts either individual file or directory paths (relative to the current | ||
working directory), or lists of paths, for any positional argument given. | ||
Defaults to the current working directory if no arguments given. | ||
|
||
* `*filename_matcher*` - A callback which returns whether a given filename is | ||
* `python_version` - The 'major' python version of the files to be refactored, i.e. `2` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add asterisks back on the param names please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry, I thought maybe they were intended as bold formatting but they display as literal asterisks (and it's not an *args param)
will put them back
also I will reorder docs and code to put my new arg after the existing one, that would be safer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done in ff8c0d4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jreese ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I appreciate the thorough tests! Two minor comments.
… Query arg after existing ones
Thank you! |
Thanks so much for merging! Do you have an idea when the next PyPI release will be? |
I hope soon, but we ought to do some manual testing on windows first -- this release ought to work there (in single process mode) and I'd like to mention that in the release notes if so. |
fixes #119
this allows Bowler to refactor py2 files containing
print
statements