1
0
mirror of https://github.com/gryf/ebook-converter.git synced 2026-04-10 23:23:34 +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

@@ -7,7 +7,7 @@ except ValueError:
iswindows = False
from ebook_converter.constants import ispy3
from ebook_converter.polyglot.builtins import iteritems, native_string_type
from ebook_converter.polyglot.builtins import native_string_type
__license__ = 'GPL v3'
@@ -42,7 +42,7 @@ RATTRIBUTES = dict(
'concealed'
)
))
ATTRIBUTES = {v:fmt(k) for k, v in iteritems(RATTRIBUTES)}
ATTRIBUTES = {v:fmt(k) for k, v in RATTRIBUTES.items()}
del ATTRIBUTES['']
RBACKGROUNDS = dict(
@@ -56,7 +56,7 @@ RBACKGROUNDS = dict(
'white'
),
))
BACKGROUNDS = {v:fmt(k) for k, v in iteritems(RBACKGROUNDS)}
BACKGROUNDS = {v:fmt(k) for k, v in RBACKGROUNDS.items()}
RCOLORS = dict(
zip(range(31, 38), (
@@ -69,7 +69,7 @@ RCOLORS = dict(
'white',
),
))
COLORS = {v:fmt(k) for k, v in iteritems(RCOLORS)}
COLORS = {v:fmt(k) for k, v in RCOLORS.items()}
RESET = fmt(0)