From e2cafb332793a55da2ac9c3f6cc22d60e0eb5186 Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Tue, 7 Jun 2011 16:14:33 +0000 Subject: [PATCH] + change repr method output to be more explicit (TODO: Is it going to break anything ?) --- bindings/python/mapnik/__init__.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bindings/python/mapnik/__init__.py b/bindings/python/mapnik/__init__.py index f3af5e8ef..e511d2d3c 100644 --- a/bindings/python/mapnik/__init__.py +++ b/bindings/python/mapnik/__init__.py @@ -316,10 +316,9 @@ class _Feature(Feature, _injector): for k, v in properties.iteritems(): self[k] = v -class _Color(Color,_injector): - - def __repr__(self): - return "Color(%r)" % self.to_hex_string() + class _Color(Color,_injector): + def __repr__(self): + return "Color(R=%d,G=%d,B=%d,A=%d)" % (self.r,self.g,self.b,self.a) class _Symbolizers(Symbolizers,_injector):