Skip to content

Commit ce43d5f

Browse files
yileirhettinger
andauthored
gh-110050: Adjust the newline position in the TypeError message of the random.seed call. (#110051)
Co-authored-by: Raymond Hettinger <[email protected]>
1 parent 756062b commit ce43d5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/random.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ def seed(self, a=None, version=2):
164164
a = int.from_bytes(a + _sha512(a).digest())
165165

166166
elif not isinstance(a, (type(None), int, float, str, bytes, bytearray)):
167-
raise TypeError('The only supported seed types are: None,\n'
168-
'int, float, str, bytes, and bytearray.')
167+
raise TypeError('The only supported seed types are:\n'
168+
'None, int, float, str, bytes, and bytearray.')
169169

170170
super().seed(a)
171171
self.gauss_next = None

0 commit comments

Comments
 (0)