Use type(x).__name__ to get the name of the type instead of parsing
repr(type(x)).
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 @@
     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)