mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-29 17:33:08 +03:00
flake8
This commit is contained in:
parent
1b8ba191e9
commit
c4d9bb6eaa
|
@ -45,10 +45,10 @@ class PSDraw:
|
||||||
"""Set up printing of a document. (Write Postscript DSC header.)"""
|
"""Set up printing of a document. (Write Postscript DSC header.)"""
|
||||||
# FIXME: incomplete
|
# FIXME: incomplete
|
||||||
self._fp_write("%!PS-Adobe-3.0\n"
|
self._fp_write("%!PS-Adobe-3.0\n"
|
||||||
"save\n"
|
"save\n"
|
||||||
"/showpage { } def\n"
|
"/showpage { } def\n"
|
||||||
"%%EndComments\n"
|
"%%EndComments\n"
|
||||||
"%%BeginDocument\n")
|
"%%BeginDocument\n")
|
||||||
# self.fp_write(ERROR_PS) # debugging!
|
# self.fp_write(ERROR_PS) # debugging!
|
||||||
self._fp_write(EDROFF_PS)
|
self._fp_write(EDROFF_PS)
|
||||||
self._fp_write(VDI_PS)
|
self._fp_write(VDI_PS)
|
||||||
|
@ -58,8 +58,8 @@ class PSDraw:
|
||||||
def end_document(self):
|
def end_document(self):
|
||||||
"""Ends printing. (Write Postscript DSC footer.)"""
|
"""Ends printing. (Write Postscript DSC footer.)"""
|
||||||
self._fp_write("%%EndDocument\n"
|
self._fp_write("%%EndDocument\n"
|
||||||
"restore showpage\n"
|
"restore showpage\n"
|
||||||
"%%End\n")
|
"%%End\n")
|
||||||
if hasattr(self.fp, "flush"):
|
if hasattr(self.fp, "flush"):
|
||||||
self.fp.flush()
|
self.fp.flush()
|
||||||
|
|
||||||
|
@ -73,7 +73,7 @@ class PSDraw:
|
||||||
if font not in self.isofont:
|
if font not in self.isofont:
|
||||||
# reencode font
|
# reencode font
|
||||||
self._fp_write("/PSDraw-%s ISOLatin1Encoding /%s E\n" %
|
self._fp_write("/PSDraw-%s ISOLatin1Encoding /%s E\n" %
|
||||||
(font, font))
|
(font, font))
|
||||||
self.isofont[font] = 1
|
self.isofont[font] = 1
|
||||||
# rough
|
# rough
|
||||||
self._fp_write("/F0 %d /PSDraw-%s F\n" % (size, font))
|
self._fp_write("/F0 %d /PSDraw-%s F\n" % (size, font))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user