From 3463fc641437230c4f31e021035b027a4de22e5d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 29 Oct 2015 17:13:59 +0530 Subject: [PATCH] pep8 --- recipes/konflikty_zbrojne.recipe | 1 - src/calibre/ebooks/docx/cleanup.py | 2 +- src/calibre/gui2/open_with.py | 2 +- src/calibre/srv/pre_activated.py | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/recipes/konflikty_zbrojne.recipe b/recipes/konflikty_zbrojne.recipe index cadc8c3245..7297bfd2a8 100644 --- a/recipes/konflikty_zbrojne.recipe +++ b/recipes/konflikty_zbrojne.recipe @@ -1,6 +1,5 @@ # -*- coding: utf-8 -*- from calibre.web.feeds.news import BasicNewsRecipe -from calibre.ebooks.BeautifulSoup import BeautifulSoup class Konflikty(BasicNewsRecipe): title = u'Konflikty Zbrojne' diff --git a/src/calibre/ebooks/docx/cleanup.py b/src/calibre/ebooks/docx/cleanup.py index 04cee33268..1107e1a971 100644 --- a/src/calibre/ebooks/docx/cleanup.py +++ b/src/calibre/ebooks/docx/cleanup.py @@ -185,7 +185,7 @@ def cleanup_markup(log, root, styles, dest_dir, detect_cover, XPath): try: width, height, fmt = identify(path) except: - width, height, fmt = 0, 0, None + width, height, fmt = 0, 0, None # noqa del fmt try: is_cover = 0.8 <= height/width <= 1.8 and height*width >= 160000 diff --git a/src/calibre/gui2/open_with.py b/src/calibre/gui2/open_with.py index 5c4f18165e..8be6ce407d 100644 --- a/src/calibre/gui2/open_with.py +++ b/src/calibre/gui2/open_with.py @@ -117,7 +117,7 @@ if iswindows: return cmdline.replace('%1', qpath) del run_program - def run_program(entry, path, parent): + def run_program(entry, path, parent): # noqa cmdline = entry_to_cmdline(entry, path) print('Running Open With commandline:', repr(entry['cmdline']), ' |==> ', repr(cmdline)) try: diff --git a/src/calibre/srv/pre_activated.py b/src/calibre/srv/pre_activated.py index 280e26b4fb..cd71376b53 100644 --- a/src/calibre/srv/pre_activated.py +++ b/src/calibre/srv/pre_activated.py @@ -38,7 +38,7 @@ if islinux: else: del pre_activated_socket has_preactivated_support = True - def pre_activated_socket(): + def pre_activated_socket(): # noqa num = systemd.sd_listen_fds(1) # Remove systemd env vars so that child processes do not inherit them if num > 1: raise EnvironmentError('Too many file descriptors received from systemd')