diff options
Diffstat (limited to 'Lib/codecs.py')
-rw-r--r-- | Lib/codecs.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/codecs.py b/Lib/codecs.py index e63a0c6..9901d5c 100644 --- a/Lib/codecs.py +++ b/Lib/codecs.py @@ -1042,10 +1042,7 @@ def make_identity_dict(rng): mapped to themselves. """ - res = {} - for i in rng: - res[i]=i - return res + return {i:i for i in rng} def make_encoding_map(decoding_map): |