diff --git a/python/mapnik/__init__.py.in b/python/mapnik/__init__.py.in index 4868c5329..5229d7afb 100644 --- a/python/mapnik/__init__.py.in +++ b/python/mapnik/__init__.py.in @@ -47,7 +47,11 @@ class _envelope(envelope,_injector): return 'envelope(%s,%s,%s,%s)' % \ (self.minx,self.miny,self.maxx,self.maxy) - +class _color(color,_injector): + def __repr__(self): + return 'color(%s,%s,%s,%s)' % \ + (self.r,self.g,self.b,self.a) + #register datasources from mapnik import datasource_cache datasource_cache.instance().register_datasources("${PREFIX}/datasources")