mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-05 08:40:13 -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
|
||||
native_string_type = str
|
||||
|
||||
|
||||
def iterkeys(d):
|
||||
return iter(d)
|
||||
iterkeys = iter
|
||||
|
||||
|
||||
def as_bytes(x, encoding='utf-8'):
|
||||
|
Loading…
x
Reference in New Issue
Block a user