[pypy-svn] r35345 - pypy/dist/pypy/translator/js/modules

guido at codespeak.net guido at codespeak.net
Tue Dec 5 22:52:07 CET 2006


Author: guido
Date: Tue Dec  5 22:52:06 2006
New Revision: 35345

Modified:
   pypy/dist/pypy/translator/js/modules/dom.py
Log:
Removed some useless __init__s.


Modified: pypy/dist/pypy/translator/js/modules/dom.py
==============================================================================
--- pypy/dist/pypy/translator/js/modules/dom.py	(original)
+++ pypy/dist/pypy/translator/js/modules/dom.py	Tue Dec  5 22:52:06 2006
@@ -87,6 +87,7 @@
 
     def __setattr__(self, name, value):
         """set an attribute on the wrapped node"""
+        print dir(self)
         if name in dir(self):
             return super(Node, self).__setattr__(name, value)
         if name not in self._fields:
@@ -128,9 +129,6 @@
     nodeType = 1
     style = None
 
-    def __init__(self, node=None):
-        super(Element, self).__init__(node)
-
     def _style(self):
         style = getattr(self._original, '_style', None)
         if style is not None:
@@ -181,10 +179,6 @@
 class Document(Node):
     nodeType = 9
     
-    def __init__(self, docnode=None):
-        super(Document, self).__init__(docnode)
-        self._original = docnode
-
     def createEvent(self, group=''):
         """create an event
 


More information about the pypy-svn mailing list