mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-07 09:01:38 -04:00
Micro-optimization
This commit is contained in:
parent
05816c2c85
commit
1744a2b2fd
@ -8,10 +8,7 @@ import sys
|
|||||||
|
|
||||||
is_py3 = sys.version_info.major >= 3
|
is_py3 = sys.version_info.major >= 3
|
||||||
native_string_type = str
|
native_string_type = str
|
||||||
|
iterkeys = iter
|
||||||
|
|
||||||
def iterkeys(d):
|
|
||||||
return iter(d)
|
|
||||||
|
|
||||||
|
|
||||||
def as_bytes(x, encoding='utf-8'):
|
def as_bytes(x, encoding='utf-8'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user