Skip to content

Commit

Permalink
Made linters happy
Browse files Browse the repository at this point in the history
  • Loading branch information
heuer committed May 15, 2024
1 parent 00b1a58 commit 2a090ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def coverage(session):
session.install('-Ur', 'tests/requirements.txt')
session.install('.')
html_output_dir = os.path.abspath(os.path.join(session.create_tmp(), 'html'))
session.run('pytest', '--cov=segno', '--cov-report=term', '--cov-report=html:%s' % html_output_dir)
session.run('pytest', '--cov=segno', '--cov-report=term', f'--cov-report=html:{html_output_dir}')


@nox.session(python=_PY_DEFAULT_VERSION)
Expand Down
4 changes: 2 additions & 2 deletions segno/writers.py
Original file line number Diff line number Diff line change
Expand Up @@ -695,8 +695,8 @@ def to_float(c):
write(graphic)
write(b'\r\nendstream\r\nendobj\r\n')
object_pos.append(f.tell())
writestr('{0} 0 obj <</CreationDate(D:{1})/Producer({2})/Creator({2})\r\n>>\r\nendofbj\r\n'
.format(len(object_pos), creation_date, CREATOR))
writestr(f'{len(object_pos)} 0 obj <</CreationDate(D:{creation_date})'
f'/Producer({CREATOR})/Creator({CREATOR})\r\n>>\r\nendofbj\r\n')
object_pos.append(f.tell())
xref_location = f.tell()
writestr(f'xref\r\n0 {len(object_pos) + 1}\r\n0000000000 65535 f\r\n')
Expand Down

0 comments on commit 2a090ae

Please sign in to comment.