__class__ -> type

This commit is contained in:
David Halter
2012-10-01 08:50:12 +02:00
parent 61f465a7d6
commit eda2430ad7
6 changed files with 23 additions and 23 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ class Keyword(object):
return imitate_pydoc(self.name)
def __repr__(self):
return '<%s: %s>' % (self.__class__.__name__, self.name)
return '<%s: %s>' % (type(self).__name__, self.name)
def imitate_pydoc(string):