Skip to content

Commit

Permalink
fix deprecation warning for high pid values
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Dirolf committed Jul 7, 2009
1 parent 9ce235b commit 48d7f0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymongo/objectid.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def __generate(self):
oid += machine_hash.digest()[0:3]

# 2 bytes pid
oid += struct.pack("<H", os.getpid())
oid += struct.pack("<H", os.getpid() % 65535)

# 3 bytes inc
ObjectId._inc_lock.acquire()
Expand Down

0 comments on commit 48d7f0e

Please sign in to comment.