Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion bson/objectid.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,10 @@ def __setstate__(self, value):
self.__id = oid

def __str__(self):
return binascii.hexlify(self.__id).decode()
return binascii.hexlify(self.__id)

def __unicode__(self):
return self.__str__().decode()

def __repr__(self):
return "ObjectId('%s')" % (str(self),)
Expand Down