Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitedd0f5b

Browse files
Split up swap of exc_context from attribute to local variable
Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
1 parent36b6177 commitedd0f5b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎Lib/contextlib.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@ def __enter__(self):
147147

148148
def__exit__(self,typ,value,traceback):
149149
# don't keep the stored exception alive unnecessarily
150-
self.exc_context,exc_context=None,self.exc_context
150+
exc_context=self.exc_context
151+
self.exc_context=None
151152
iftypisNone:
152153
try:
153154
next(self.gen)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp