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:
Yilei Yang 2023-10-10 05:16:26 -07:00 committed by GitHub
parent 756062b296
commit ce43d5f0e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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