8000 variable name type --> typ · python/cpython@2ce2c26 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2ce2c26

Browse files
committed
variable name type --> typ
1 parent 242708e commit 2ce2c26

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Lib/idlelib/stackviewer.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@ def get_stack(self, tb):
4141

4242
def get_exception(self):
4343
if hasattr(sys, 'last_exc'):
44-
type = type(sys.last_exc)
44+
typ = type(sys.last_exc)
4545
value = sys.last_exc
4646
else:
47-
type = sys.last_type
47+
typ = sys.last_type
4848
value = sys.last_value
49-
if hasattr(type, "__name__"):
50-
type = type.__name__
51-
s = str(type)
49+
if hasattr(typ, "__name__"):
50+
typ = typ.__name__
51+
s = str(typ)
5252
if value is not None:
5353
s = s + ": " + str(value)
5454
return s

0 commit comments

Comments
 (0)
0