Deprecation message correction

This commit is contained in:
Nicolas Pieuchot 2013-04-25 21:10:42 +02:00
parent af72132349
commit f1c245c9c5

View File

@ -133,7 +133,7 @@ class FreeTypeFont:
def __init__(self, font=None, size=10, index=0, encoding="", file=None):
# FIXME: use service provider instead
if file:
warnings.warn('`file` parameter deprecated, please use `font` instead.', DeprecationWarning)
warnings.warn('file parameter deprecated, please use font parameter instead.', DeprecationWarning)
font = file
if isinstance(font, basestring):
@ -225,7 +225,7 @@ def truetype(font=None, size=10, index=0, encoding="", filename=None):
"Load a truetype font file."
if filename:
warnings.warn('`file` parameter deprecated, please use `font` instead.', DeprecationWarning)
warnings.warn('filename parameter deprecated, please use font parameter instead.', DeprecationWarning)
font = filename
try: