summaryrefslogtreecommitdiffstats
path: root/Lib/random.py
diff options
context:
space:
mode:
authorYilei Yang <hi@mangoumbrella.com>2023-10-10 12:16:26 (GMT)
committerGitHub <noreply@github.com>2023-10-10 12:16:26 (GMT)
commitce43d5f0e1e271289be5510ec80ebb9df77d88e1 (patch)
tree5dc242738c0fa4bfacf503cd64620ff3bb923127 /Lib/random.py
parent756062b296df6242ba324e4cdc8f3e38bfc83617 (diff)
downloadcpython-ce43d5f0e1e271289be5510ec80ebb9df77d88e1.zip
cpython-ce43d5f0e1e271289be5510ec80ebb9df77d88e1.tar.gz
cpython-ce43d5f0e1e271289be5510ec80ebb9df77d88e1.tar.bz2
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>
Diffstat (limited to 'Lib/random.py')
-rw-r--r--Lib/random.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/random.py b/Lib/random.py
index 1cfc2ba..3f7bfd2 100644
--- a/Lib/random.py
+++ b/Lib/random.py
@@ -164,8 +164,8 @@ class Random(_random.Random):
a = int.from_bytes(a + _sha512(a).digest())
elif not isinstance(a, (type(None), int, float, str, bytes, bytearray)):
- raise TypeError('The only supported seed types are: None,\n'
- 'int, float, str, bytes, and bytearray.')
+ raise TypeError('The only supported seed types are:\n'
+ 'None, int, float, str, bytes, and bytearray.')
super().seed(a)
self.gauss_next = None