Package svnmailer :: Module stream :: Class BinaryOrUnicodeStream
[hide private]

Class BinaryOrUnicodeStream

source code

 object --+    
          |    
_BaseStream --+
              |
             BinaryOrUnicodeStream

Stream wrapper, which accepts unicode or binary data

Unicode data is converted to UTF-8

Instance Methods [hide private]
 
write(self, towrite)
Write a string or unicode
source code

Inherited from _BaseStream: __getattr__, __init__, close, writelines

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

Instance Variables [hide private]

Inherited from _BaseStream: stream

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

write(self, towrite)

source code 

Write a string or unicode

Parameters:
  • towrite - stuff to write
Overrides: _BaseStream.write