diff options
| author | Raymond Hettinger <python@rcn.com> | 2011-05-05 11:38:06 -0700 |
|---|---|---|
| committer | Raymond Hettinger <python@rcn.com> | 2011-05-05 11:38:06 -0700 |
| commit | 7c5dc912babeb6b0dc0f4d7131886f7f937e6f16 (patch) | |
| tree | 9a96bf95985dccde4d42a6d2cd42c649b435b7f2 /Lib/random.py | |
| parent | b596dc7c86a83c799973ff93e44419a261ea8891 (diff) | |
| parent | f90ba8a9a20f61c2a46d0881e39e558e39f968e8 (diff) | |
| download | cpython-git-7c5dc912babeb6b0dc0f4d7131886f7f937e6f16.tar.gz | |
Avoid codec spelling issues by just using the utf-8 default.
Diffstat (limited to 'Lib/random.py')
| -rw-r--r-- | Lib/random.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/random.py b/Lib/random.py index 0794f94efd..49b7c93fc5 100644 --- a/Lib/random.py +++ b/Lib/random.py @@ -114,7 +114,7 @@ class Random(_random.Random): if version == 2: if isinstance(a, (str, bytes, bytearray)): if isinstance(a, str): - a = a.encode("utf-8") + a = a.encode() a += _sha512(a).digest() a = int.from_bytes(a, 'big') |
