ports/textproc/py-4suite/files/patch-Lib-Uuid.py
Johann Visagie 5e9b7d9ce4 - Add a patch for a small typo(?) which results in half the bits of a
generated UUID being trown away
- Bumped PORTREVISION

PR:		31508
Submitted by:	Alan Eldridge <alane@geeksrus.net>
2002-01-07 13:02:01 +00:00

11 lines
336 B
Python

--- Lib/Uuid.py.orig Fri Aug 10 07:28:49 2001
+++ Lib/Uuid.py Mon Jan 7 14:49:45 2002
@@ -64,7 +64,7 @@
newUuid = ''
curUuid = uuid
for ctr in range(16):
- num = int(curUuid & 0xF)
+ num = int(curUuid & 0xFF)
newChar = chr(num)
curUuid = curUuid >> 8
newUuid = newChar + newUuid