Kaydet (Commit) 07fec3aa authored tarafından Georg Brandl's avatar Georg Brandl

os.urandom no longer masks unrelated exceptions like SystemExit or

KeyboardInterrupt.
üst 86e1e380
...@@ -723,7 +723,7 @@ if not _exists("urandom"): ...@@ -723,7 +723,7 @@ if not _exists("urandom"):
""" """
try: try:
_urandomfd = open("/dev/urandom", O_RDONLY) _urandomfd = open("/dev/urandom", O_RDONLY)
except: except (OSError, IOError):
raise NotImplementedError("/dev/urandom (or equivalent) not found") raise NotImplementedError("/dev/urandom (or equivalent) not found")
bytes = "" bytes = ""
while len(bytes) < n: while len(bytes) < n:
......
...@@ -61,6 +61,9 @@ Core and builtins ...@@ -61,6 +61,9 @@ Core and builtins
Library Library
------- -------
- os.urandom no longer masks unrelated exceptions like SystemExit or
KeyboardInterrupt.
- Bug #1525866: Don't copy directory stat times in - Bug #1525866: Don't copy directory stat times in
shutil.copytree on Windows shutil.copytree on Windows
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment