summaryrefslogtreecommitdiffstats
path: root/Lib/repr.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/repr.py')
-rw-r--r--Lib/repr.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/repr.py b/Lib/repr.py
index f9cfcf6..f418d1a 100644
--- a/Lib/repr.py
+++ b/Lib/repr.py
@@ -14,7 +14,7 @@ class Repr:
def repr(self, x):
return self.repr1(x, self.maxlevel)
def repr1(self, x, level):
- typename = `type(x)`[7:-2] # "<type '......'>"
+ typename = type(x).__name__
if ' ' in typename:
parts = typename.split()
typename = '_'.join(parts)