1
0
mirror of https://github.com/gryf/ebook-converter.git synced 2026-04-03 02:53:32 +02:00

Removed iteritems and itervalues, which are redundant

This commit is contained in:
2020-04-21 18:20:08 +02:00
parent 9e076e0af4
commit 3234e4de27
82 changed files with 382 additions and 457 deletions

View File

@@ -5,7 +5,7 @@ from ebook_converter.constants import isosx, isfrozen, filesystem_encoding, ispy
from ebook_converter.utils.config import prefs
from ebook_converter.ptempfile import PersistentTemporaryFile, base_dir
from ebook_converter.utils.serialize import msgpack_dumps
from ebook_converter.polyglot.builtins import iteritems, environ_item, native_string_type
from ebook_converter.polyglot.builtins import environ_item, native_string_type
from ebook_converter.polyglot.binary import as_hex_unicode
try:
import win32process
@@ -162,7 +162,7 @@ class Worker(object):
self._env = env.copy()
else:
# Windows cannot handle unicode env vars
for k, v in iteritems(env):
for k, v in env.items():
try:
if isinstance(k, str):
k = k.encode('ascii')