mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Whitespace normalization.
This commit is contained in:
parent
a28b3e6dfb
commit
45e77c55ff
4 changed files with 52 additions and 52 deletions
|
@ -658,17 +658,17 @@ except NameError: # statvfs_result may not exist
|
|||
pass
|
||||
|
||||
if not _exists("urandom"):
|
||||
_urandomfd = None
|
||||
_urandomfd = None
|
||||
def urandom(n):
|
||||
"""urandom(n) -> str
|
||||
|
||||
|
||||
Return a string of n random bytes suitable for cryptographic use.
|
||||
|
||||
"""
|
||||
"""
|
||||
global _urandomfd
|
||||
if not _urandomfd:
|
||||
try:
|
||||
_urandomfd = open("/dev/urandom", O_RDONLY)
|
||||
_urandomfd = open("/dev/urandom", O_RDONLY)
|
||||
except:
|
||||
_urandomfd = NotImplementedError
|
||||
if _urandomfd is NotImplementedError:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue