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

More intelligently find locals when assigning, looping, excepting. #173

Merged
merged 3 commits into from
Dec 24, 2014

Conversation

asottile
Copy link
Collaborator

No description provided.

addFinally = addReIndentingDirective

def addExcept(self, expr, line_col, dedent=True):
self._update_locals('try:\n pass\n' + expr + ':\n pass')
Copy link
Contributor

Choose a reason for hiding this comment

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

I find this humorous.
expr never ends with colon?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

In fact it is asserted on inside the addReIndentingDirective

@bukzor
Copy link
Contributor

bukzor commented Dec 24, 2014

:shipit: , pending travis

asottile added a commit that referenced this pull request Dec 24, 2014
More intelligently find locals when assigning, looping, excepting.
@asottile asottile merged commit fb21010 into master Dec 24, 2014
@asottile asottile deleted the optimize_set branch December 24, 2014 02:06
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

Successfully merging this pull request may close these issues.

None yet

2 participants