mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-11 09:13:57 -04:00
pep8
This commit is contained in:
parent
9c5d2646e3
commit
80887a8a14
@ -150,7 +150,8 @@ class PdfEngine(QPaintEngine):
|
||||
return QPaintEngine.Pdf
|
||||
|
||||
def add_image(self, img, cache_key):
|
||||
if img.isNull(): return
|
||||
if img.isNull():
|
||||
return
|
||||
return self.pdf.add_image(img, cache_key)
|
||||
|
||||
@store_error
|
||||
@ -271,7 +272,8 @@ class PdfEngine(QPaintEngine):
|
||||
@store_error
|
||||
def drawPolygon(self, points, mode):
|
||||
self.apply_graphics_state()
|
||||
if not points: return
|
||||
if not points:
|
||||
return
|
||||
p = Path()
|
||||
p.move_to(points[0].x(), points[0].y())
|
||||
for point in points[1:]:
|
||||
@ -305,7 +307,6 @@ class PdfEngine(QPaintEngine):
|
||||
|
||||
class PdfDevice(QPaintDevice): # {{{
|
||||
|
||||
|
||||
def __init__(self, file_object, page_size=A4, left_margin=inch,
|
||||
top_margin=inch, right_margin=inch, bottom_margin=inch,
|
||||
xdpi=1200, ydpi=1200, errors=print, debug=print,
|
||||
|
Loading…
x
Reference in New Issue
Block a user