diff options
| author | Martin v. Löwis <martin@v.loewis.de> | 2004-09-18 16:07:58 +0000 |
|---|---|---|
| committer | Martin v. Löwis <martin@v.loewis.de> | 2004-09-18 16:07:58 +0000 |
| commit | 725f8c83a27989ea2413c6d9c824cb78eddf52dd (patch) | |
| tree | 9045603898339366ef8c68d6b157d05ad3f72adc | |
| parent | b0c670ce398e7f8953b9a13ae0e40de6ef70d05f (diff) | |
| download | cpython-git-725f8c83a27989ea2413c6d9c824cb78eddf52dd.tar.gz | |
Patch #1021596: Check for None to determine whether _urandomfd is
uninitialized.
| -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: |
