diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2004-09-18 16:07:58 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2004-09-18 16:07:58 (GMT) |
commit | 725f8c83a27989ea2413c6d9c824cb78eddf52dd (patch) | |
tree | 9045603898339366ef8c68d6b157d05ad3f72adc /Lib/os.py | |
parent | b0c670ce398e7f8953b9a13ae0e40de6ef70d05f (diff) | |
download | cpython-725f8c83a27989ea2413c6d9c824cb78eddf52dd.zip cpython-725f8c83a27989ea2413c6d9c824cb78eddf52dd.tar.gz cpython-725f8c83a27989ea2413c6d9c824cb78eddf52dd.tar.bz2 |
Patch #1021596: Check for None to determine whether _urandomfd is
uninitialized.
Diffstat (limited to 'Lib/os.py')
-rw-r--r-- | Lib/os.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -666,7 +666,7 @@ if not _exists("urandom"): """ global _urandomfd - if not _urandomfd: + if _urandomfd is None: try: _urandomfd = open("/dev/urandom", O_RDONLY) except: |