summaryrefslogtreecommitdiffstats
path: root/Lib/encodings/punycode.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/encodings/punycode.py')
-rw-r--r--Lib/encodings/punycode.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/encodings/punycode.py b/Lib/encodings/punycode.py
index d97200f..0e4aa0b 100644
--- a/Lib/encodings/punycode.py
+++ b/Lib/encodings/punycode.py
@@ -17,8 +17,7 @@ def segregate(str):
base.append(c)
else:
extended[c] = 1
- extended = extended.keys()
- extended.sort()
+ extended = sorted(extended.keys())
return "".join(base).encode("ascii"),extended
def selective_len(str, max):