Skip to content

Commit

Permalink
Make class name dynamic in Sbn's repr output.
Browse files Browse the repository at this point in the history
  • Loading branch information
JNRowe committed Nov 25, 2012
1 parent acc53a0 commit 72513ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyisbn/__init__.py
Expand Up @@ -249,7 +249,7 @@ def __repr__(self):
:return: String to recreate ``Sbn`` object
"""
return 'Sbn(%r)' % self.isbn[1:]
return '%s(%r)' % (self.__class__.__name__, self.isbn[1:])

def calculate_checksum(self):
"""Calculate SBN checksum.
Expand Down

0 comments on commit 72513ae

Please sign in to comment.