pdfa.py: Fix misleading comment

This commit is contained in:
James R. Barlow
2019-12-11 01:05:47 -08:00
parent a2d89f67c4
commit 91456e19a4
+1 -2
View File
@@ -82,8 +82,6 @@ def generate_pdfa_ps(target_filename, icc='sRGB'):
:param target_filename: filename to save
:param icc: ICC identifier such as 'sRGB'
:returns: a string containing the entire pdfmark
"""
if icc == 'sRGB':
icc_profile = SRGB_ICC_PROFILE
@@ -101,6 +99,7 @@ def generate_pdfa_ps(target_filename, icc='sRGB'):
# We should have encoded everything to pure ASCII by this point, and
# to be safe, only allow ASCII in PostScript
Path(target_filename).write_text(ps, encoding='ascii')
return target_filename
def file_claims_pdfa(filename):