Mercurial > fife-parpg
diff engine/extensions/pychan/attrs.py @ 188:06dddc96ce54
* Fixed some space and tab mixing
* Fixed a small bug in manager.py, thanks to phoku for the pointer.
author | nihathrael@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Thu, 26 Feb 2009 11:26:01 +0000 |
parents | fe7ff4808529 |
children | 756b895e1dab |
line wrap: on
line diff
--- a/engine/extensions/pychan/attrs.py Wed Feb 25 20:58:09 2009 +0000 +++ b/engine/extensions/pychan/attrs.py Thu Feb 26 11:26:01 2009 +0000 @@ -10,7 +10,7 @@ Usage:: class SomeObject: nameAttr, posAttr = [ Attr("name"), PointAttr("pos") ] - + obj = SomeObject() obj.nameAttr.set(obj,"newName") obj.posAttr.set(obj,"89,89") @@ -85,7 +85,7 @@ return value except: raise ParserError("Expected a 0 or 1.") - + class FloatAttr(Attr): def parse(self, value): try: