diff --git a/Lib/random.py b/Lib/random.py index 1cfc2ba2f025b5..3f7bfd272d65a5 100644 --- a/Lib/random.py +++ b/Lib/random.py @@ -164,8 +164,8 @@ def seed(self, a=None, version=2): 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