1.1 --- a/libxml2dom/__init__.py Mon Dec 12 12:46:16 2005 +0000
1.2 +++ b/libxml2dom/__init__.py Mon Dec 12 12:46:40 2005 +0000
1.3 @@ -2,9 +2,25 @@
1.4
1.5 """
1.6 DOM wrapper around libxml2, specifically the libxml2mod Python extension module.
1.7 +
1.8 +Copyright (C) 2003, 2004, 2005 Paul Boddie <paul@boddie.org.uk>
1.9 +
1.10 +This library is free software; you can redistribute it and/or
1.11 +modify it under the terms of the GNU Lesser General Public
1.12 +License as published by the Free Software Foundation; either
1.13 +version 2.1 of the License, or (at your option) any later version.
1.14 +
1.15 +This library is distributed in the hope that it will be useful,
1.16 +but WITHOUT ANY WARRANTY; without even the implied warranty of
1.17 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1.18 +Lesser General Public License for more details.
1.19 +
1.20 +You should have received a copy of the GNU Lesser General Public
1.21 +License along with this library; if not, write to the Free Software
1.22 +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
1.23 """
1.24
1.25 -__version__ = "0.3.2"
1.26 +__version__ = "0.3.3"
1.27
1.28 from libxml2dom.macrolib import *
1.29 from libxml2dom.macrolib import \
1.30 @@ -13,7 +29,6 @@
1.31 parseFile as Node_parseFile, \
1.32 toString as Node_toString, toStream as Node_toStream, \
1.33 toFile as Node_toFile
1.34 -import weakref
1.35
1.36 # Attribute and node list wrappers.
1.37
1.38 @@ -391,10 +406,9 @@
1.39
1.40 def __init__(self, node):
1.41 self._node = node
1.42 - self.weakref_ownerDocument = weakref.ref(self)
1.43
1.44 def _ownerDocument(self):
1.45 - return self.weakref_ownerDocument()
1.46 + return self
1.47
1.48 def _parentNode(self):
1.49 return None