mirror of https://github.com/python/cpython
gh-110050: Adjust the newline position in the TypeError message of the random.seed call. (#110051)
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
This commit is contained in:
parent
756062b296
commit
ce43d5f0e1
|
@ -164,8 +164,8 @@ class Random(_random.Random):
|
||||||
a = int.from_bytes(a + _sha512(a).digest())
|
a = int.from_bytes(a + _sha512(a).digest())
|
||||||
|
|
||||||
elif not isinstance(a, (type(None), int, float, str, bytes, bytearray)):
|
elif not isinstance(a, (type(None), int, float, str, bytes, bytearray)):
|
||||||
raise TypeError('The only supported seed types are: None,\n'
|
raise TypeError('The only supported seed types are:\n'
|
||||||
'int, float, str, bytes, and bytearray.')
|
'None, int, float, str, bytes, and bytearray.')
|
||||||
|
|
||||||
super().seed(a)
|
super().seed(a)
|
||||||
self.gauss_next = None
|
self.gauss_next = None
|
||||||
|
|
Loading…
Reference in New Issue