Skip to content

Commit

Permalink
IndirectObject.hashValue: Fixed collision of indirect objects.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hatell committed Jul 31, 2015
1 parent fd2fe4d commit 269228d
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 @@ -201,7 +201,7 @@ def getObject(self):
return self.pdf.getObject(self).getObject()

def hashValue(self):
return "IndirectObject:(%r,%r)" % (self.idnum, self.generation)
return "IndirectObject<%s>:(%r,%r)" % (hex(id(self.pdf)), self.idnum, self.generation)

def __repr__(self):
return "IndirectObject(%r, %r)" % (self.idnum, self.generation)
Expand Down

0 comments on commit 269228d

Please sign in to comment.