Skip to content

Commit

Permalink
Update generic.py
Browse files Browse the repository at this point in the history
Issue 57 Correctly initialize NumberObject (to make it work under pypy)
  • Loading branch information
rjungbeck committed Mar 2, 2014
1 parent 0233dd5 commit 37ad565
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PyPDF2/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def writeToStream(self, stream, encryption_key):

class NumberObject(int, PdfObject):
def __init__(self, value):
int.__init__(value)
int.__init__(self, value)

def as_numeric(self):
return int(b_(repr(self)))
Expand Down

0 comments on commit 37ad565

Please sign in to comment.