From 1744a2b2fd00cf002d518aad523dd1dd2d571e97 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 29 Apr 2019 21:27:14 +0530 Subject: [PATCH] Micro-optimization --- src/polyglot/builtins.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/polyglot/builtins.py b/src/polyglot/builtins.py index 83c17f73a4..aaf122dce8 100644 --- a/src/polyglot/builtins.py +++ b/src/polyglot/builtins.py @@ -8,10 +8,7 @@ import sys is_py3 = sys.version_info.major >= 3 native_string_type = str - - -def iterkeys(d): - return iter(d) +iterkeys = iter def as_bytes(x, encoding='utf-8'):