Skip to content

Use proper syntax for conditional expressions. #447

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

Merged
merged 1 commit into from
May 27, 2016

Conversation

Xender
Copy link
Contributor

@Xender Xender commented May 26, 2016

Hello. :)

This change replaces abusing the "short-circuit" property of logical operations (cond and A or B) with dedicated conditional expression syntax (A if cond else B).

Just please double-check that I didn't get the and-or short-circuitry logic backwards or wrong in some other way! ;)

(instead of abusing the "short-circuit" property of logical operations)
@Byron Byron added this to the v2.0.4 - Bugfixes milestone May 27, 2016
@Byron
Copy link
Member

Byron commented May 27, 2016

Looks very good, thank you !

@Byron Byron merged commit c5077da into gitpython-developers:master May 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants