[Python-checkins] python/dist/src/Lib os.py,1.81,1.82
loewis at users.sourceforge.net
loewis at users.sourceforge.net
Sat Sep 18 18:08:01 CEST 2004
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22776/Lib
Modified Files:
os.py
Log Message:
Patch #1021596: Check for None to determine whether _urandomfd is
uninitialized.
Index: os.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/os.py,v
retrieving revision 1.81
retrieving revision 1.82
diff -u -d -r1.81 -r1.82
--- os.py 1 Sep 2004 13:10:31 -0000 1.81
+++ os.py 18 Sep 2004 16:07:58 -0000 1.82
@@ -666,7 +666,7 @@
"""
global _urandomfd
- if not _urandomfd:
+ if _urandomfd is None:
try:
_urandomfd = open("/dev/urandom", O_RDONLY)
except:
More information about the Python-checkins
mailing list