The representation of an active diversion. Diversions act as
(writable) file objects, and then can be recalled either as pure
strings or (readable) file objects.
Methods
|
|
__init__
asFile
asString
close
flush
write
writelines
|
|
__init__
|
__init__ ( self )
|
|
asFile
|
asFile ( self )
Return the diversion as a file.
|
|
asString
|
asString ( self )
Return the diversion as a string.
|
|
close
|
close ( self )
|
|
flush
|
flush ( self )
|
|
write
|
write ( self, data )
|
|
writelines
|
writelines ( self, lines )
|
|