+ change repr method output to be more explicit

(TODO: Is it going to break anything ?)
This commit is contained in:
Artem Pavlenko 2011-06-07 16:14:33 +00:00
parent 6a92e63cc1
commit e2cafb3327

View file

@ -316,10 +316,9 @@ class _Feature(Feature, _injector):
for k, v in properties.iteritems(): for k, v in properties.iteritems():
self[k] = v self[k] = v
class _Color(Color,_injector): class _Color(Color,_injector):
def __repr__(self):
def __repr__(self): return "Color(R=%d,G=%d,B=%d,A=%d)" % (self.r,self.g,self.b,self.a)
return "Color(%r)" % self.to_hex_string()
class _Symbolizers(Symbolizers,_injector): class _Symbolizers(Symbolizers,_injector):