Skip to content

Commit 279bb1e

Browse files
committed
minor code standard changes
1 parent f6997ed commit 279bb1e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/matplotlib/backends/backend_pdf.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -644,8 +644,8 @@ def _write_afm_font(self, filename):
644644
return fontdictObject
645645

646646
def embedTeXFont(self, texname, fontinfo):
647-
msg = 'Embedding TeX font ' + texname + ' - fontinfo=' + \
648-
repr(fontinfo.__dict__)
647+
msg = ('Embedding TeX font ' + texname + ' - fontinfo=' +
648+
repr(fontinfo.__dict__))
649649
matplotlib.verbose.report(msg, 'debug')
650650

651651
# Widths
@@ -674,11 +674,11 @@ def embedTeXFont(self, texname, fontinfo):
674674
# If no file is specified, stop short
675675
if fontinfo.fontfile is None:
676676
msg = ('Because of TeX configuration (pdftex.map, see updmap '
677-
'option pdftexDownloadBase14) the font %s '
678-
'is not embedded. This is deprecated as of PDF 1.5 '
679-
'and it may cause the consumer application to show '
680-
'something that was not intended.')
681-
warnings.warn(msg % fontinfo.basefont)
677+
'option pdftexDownloadBase14) the font {0} is not '
678+
'embedded. This is deprecated as of PDF 1.5 and it may '
679+
'cause the consumer application to show something that '
680+
'was not intended.').format(fontinfo.basefont)
681+
warnings.warn(msg)
682682
fontdict['BaseFont'] = Name(fontinfo.basefont)
683683
self.writeObject(fontdictObject, fontdict)
684684
return fontdictObject

0 commit comments

Comments
 (0)