Skip to content

Use context manager over try-finally#18176

Closed
alanyee wants to merge 1 commit intopython:masterfrom
alanyee:patch-1
Closed

Use context manager over try-finally#18176
alanyee wants to merge 1 commit intopython:masterfrom
alanyee:patch-1

Conversation

@alanyee
Copy link
Contributor

@alanyee alanyee commented Jan 25, 2020

-Use context manager over try-finally
-Use format() over % as intended by PEP 3101

-Use context manager over try-finally
-Use format() over % under PEP 3101
@tirkarthi
Copy link
Member

This looks similar to work done at #10921 . cc: @serhiy-storchaka @merwok

I am not sure about the % format change.

@merwok
Copy link
Member

merwok commented Jan 26, 2020

I’m afraid this is a cosmetic change that does not fix a bug or improve maintainability, so generally not done for the Python project.

@serhiy-storchaka
Copy link
Member

distutils is considered frozen. This change does not fix a bug.

@alanyee alanyee deleted the patch-1 branch March 14, 2020 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants