[Dev OpenGP] [47] __init__ method was useless. |
[ Thread Index |
Date Index
| More opengp.tuxfamily.org/development Archives
]
Revision: 47
Author: alband85
Date: 2009-03-18 10:55:12 +0100 (Wed, 18 Mar 2009)
Log Message:
-----------
__init__ method was useless.
Modified Paths:
--------------
trunk/src/DomElementMethods/ElementMethods.py
Modified: trunk/src/DomElementMethods/ElementMethods.py
===================================================================
--- trunk/src/DomElementMethods/ElementMethods.py 2009-03-17 00:12:34 UTC (rev 46)
+++ trunk/src/DomElementMethods/ElementMethods.py 2009-03-18 09:55:12 UTC (rev 47)
@@ -8,8 +8,6 @@
ATTR_ID = "id"
class OgpElement(ElementBase):
- def __init(self, tag, attrib):
- ElementBase.__init__(self, tag, attrib)
def __setattr__(self, item, value):
if item == "text" and value is not None:
@@ -46,7 +44,7 @@
"""
assert isinstance(blocking, bool)
if blocking:
- self.attrib[ATTR_BLOCK] = str(blocking)
+ self.attrib[ATTR_BLOCK] = str(blocking).lower()
else:
try:
del self.attrib[ATTR_BLOCK]