diff --git a/icons/icns/make_iconsets.py b/icons/icns/make_iconsets.py index 9cfba651ef..a60305acca 100644 --- a/icons/icns/make_iconsets.py +++ b/icons/icns/make_iconsets.py @@ -17,7 +17,7 @@ sources = {'calibre':j(imgsrc, 'calibre.svg'), 'ebook-edit':j(imgsrc, 'tweak.svg if sys.argv[-1] == 'only-logo': sources = {'calibre':sources['calibre']} -for name, src in sources.iteritems(): +for name, src in sources.items(): iconset = name + '.iconset' if os.path.exists(iconset): shutil.rmtree(iconset) @@ -44,4 +44,3 @@ for name, src in sources.iteritems(): subprocess.check_call(['optipng', '-o7', '-strip', 'all', name]) finally: os.chdir('..') - diff --git a/icons/make_ico_files.py b/icons/make_ico_files.py index 053c204fec..cdd9e6aca2 100644 --- a/icons/make_ico_files.py +++ b/icons/make_ico_files.py @@ -17,7 +17,7 @@ sources = {'library':j(imgsrc, 'calibre.svg'), 'ebook-edit':j(imgsrc, 'tweak.svg if sys.argv[-1] == 'only-logo': sources = {'library':sources['library']} -for name, src in sources.iteritems(): +for name, src in sources.items(): os.mkdir('ico_temp') try: names = [] diff --git a/manual/plugin_examples/editor_demo/main.py b/manual/plugin_examples/editor_demo/main.py index 88b032a563..193b8ef45d 100644 --- a/manual/plugin_examples/editor_demo/main.py +++ b/manual/plugin_examples/editor_demo/main.py @@ -78,7 +78,7 @@ class DemoTool(Tool): # Iterate over all style declarations in the book, this means css # stylesheets,