commit | f90ba8a9a20f61c2a46d0881e39e558e39f968e8 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Thu May 05 11:35:50 2011 -0700 |
committer | Raymond Hettinger <python@rcn.com> | Thu May 05 11:35:50 2011 -0700 |
tree | c2d4f83eee90533cd61754dd73323d80ca865763 | |
parent | c4d7864e0ead4b764732b75d52cab180151dde2e [diff] |
Avoid codec spelling issues by just using the utf-8 default.
diff --git a/Lib/random.py b/Lib/random.py index 6bdd439..33d3634 100644 --- a/Lib/random.py +++ b/Lib/random.py
@@ -114,7 +114,7 @@ if version == 2: if isinstance(a, (str, bytes, bytearray)): if isinstance(a, str): - a = a.encode("utf8") + a = a.encode() a += _sha512(a).digest() a = int.from_bytes(a, 'big')