Package mdp :: Package hinet :: Module htmlvisitor :: Class NewlineWriteFile
[hide private]
[frames] | no frames]

Class NewlineWriteFile


Decorator for file-like object.

Adds a newline character to each line written with write().

Instance Methods [hide private]
 
__getattr__(self, attr)
 
__init__(self, file_obj)
Wrap the given file-like object.
 
write(self, str_obj)
Write a string to the file object and append a newline character.

Inherited from unreachable.newobject: __long__, __native__, __nonzero__, __unicode__, next

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__getattr__(self, attr)
(Qualification operator)

 

__init__(self, file_obj)
(Constructor)

 
Wrap the given file-like object.

Overrides: object.__init__

write(self, str_obj)

 
Write a string to the file object and append a newline character.