This commit is contained in:
Kovid Goyal 2015-10-29 17:13:59 +05:30
parent 51df81135f
commit 3463fc6414
4 changed files with 3 additions and 4 deletions

View File

@ -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'

View File

@ -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

View File

@ -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:

View File

@ -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')