[issue32828] compress "True if bool(x) else False" expressions

2018-02-12 Thread R. David Murray
R. David Murray added the comment: Oops. I actually didn't intend to close this, but thinking about it I'm going to leave it closed. We generally don't do this kind of "tidy work" unless we are touching the code for other reasons. --

[issue32828] compress "True if bool(x) else False" expressions

2018-02-12 Thread R. David Murray
R. David Murray added the comment: The one in generator.py should not be changed, it is clearer as written. I don't have a strong opinion on the others. -- nosy: +r.david.murray resolution: -> rejected stage: -> resolved status: open -> closed

[issue32828] compress "True if bool(x) else False" expressions

2018-02-12 Thread Дилян Палаузов
New submission from Дилян Палаузов : diff --git a/Lib/_strptime.py b/Lib/_strptime.py --- a/Lib/_strptime.py +++ b/Lib/_strptime.py @@ -525,7 +525,7 @@ def _strptime(data_string, format="%a %b %d %H:%M:%S %Y"): # out the Julian day of the year. if julian is