Commit 37e63946 authored by William M. Brack's avatar William M. Brack
Browse files

ran 'expand' on the file to get rid of mixture of tabs and spaces (bug

* python/libxml.py: ran 'expand' on the file to get rid of mixture
  of tabs and spaces (bug 147424)
parent e9449c5d
Tue Jul 13 00:14:08 HKT 2004 William Brack <wbrack@mmm.com.hk>
* python/libxml.py: ran 'expand' on the file to get rid of mixture
of tabs and spaces (bug 147424)
Sun Jul 11 22:38:29 HKT 2004 William Brack <wbrack@mmm.com.hk> Sun Jul 11 22:38:29 HKT 2004 William Brack <wbrack@mmm.com.hk>
   
* python/drv_libxml.py: added an encoding "special comment" to avoid * python/drv_libxml.py: added an encoding "special comment" to avoid
......
...@@ -82,19 +82,19 @@ class ioWriteWrapper(ioWrapper): ...@@ -82,19 +82,19 @@ class ioWriteWrapper(ioWrapper):
def __init__(self, _obj, enc = ""): def __init__(self, _obj, enc = ""):
# print "ioWriteWrapper.__init__", _obj # print "ioWriteWrapper.__init__", _obj
if type(_obj) == type(''): if type(_obj) == type(''):
print "write io from a string" print "write io from a string"
self.o = None self.o = None
elif type(_obj) == types.InstanceType: elif type(_obj) == types.InstanceType:
print "write io from instance of %s" % (_obj.__class__) print "write io from instance of %s" % (_obj.__class__)
ioWrapper.__init__(self, _obj) ioWrapper.__init__(self, _obj)
self._o = libxml2mod.xmlCreateOutputBuffer(self, enc) self._o = libxml2mod.xmlCreateOutputBuffer(self, enc)
else: else:
file = libxml2mod.outputBufferGetPythonFile(_obj) file = libxml2mod.outputBufferGetPythonFile(_obj)
if file != None: if file != None:
ioWrapper.__init__(self, file) ioWrapper.__init__(self, file)
else: else:
ioWrapper.__init__(self, _obj) ioWrapper.__init__(self, _obj)
self._o = _obj self._o = _obj
def __del__(self): def __del__(self):
# print "__del__" # print "__del__"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment