mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-29 10:12:34 -04:00
Micro-optimization
This commit is contained in:
@@ -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'):
|
||||
|
||||
Reference in New Issue
Block a user