mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
pep8
This commit is contained in:
parent
51df81135f
commit
3463fc6414
@ -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'
|
||||
|
@ -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
|
||||
|
@ -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:
|
||||
|
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user