From e43e22dafa62244ad9835335d4dc2733bd1a7b83 Mon Sep 17 00:00:00 2001 From: "Lee, Cheon-il" Date: Sat, 13 Sep 2014 03:13:38 +0000 Subject: [PATCH] Add default value to Font.size --- wand/font.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wand/font.py b/wand/font.py index 67e36d2d..7ffd5191 100644 --- a/wand/font.py +++ b/wand/font.py @@ -44,12 +44,12 @@ class Font(tuple): """Font struct which is a subtype of :class:`tuple`. Its constructor - takes :attr:`path`, :attr:`size`, :attr:`color` (black by default), and - :attr:`antialias` (``True`` by default). + takes :attr:`path`, :attr:`size` (0 by default), :attr:`color` + (black by default), and :attr:`antialias` (``True`` by default). """ - def __new__(cls, path, size, color=None, antialias=True): + def __new__(cls, path, size=0, color=None, antialias=True): if not isinstance(path, string_type): raise TypeError('path must be a string, not ' + repr(path)) if not isinstance(size, numbers.Real):