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):