Vega strike Python Modules doc  0.5.1
Documentation of the " Modules " folder of Vega strike
All Data Structures Namespaces Files Functions Variables
_WritelnDecorator Class Reference

Text UI. More...

Public Member Functions

def __init__
 
def __getattr__
 
def writeln
 

Data Fields

 stream
 

Detailed Description

Text UI.

Used to decorate file-like objects with a handy 'writeln' method

Definition at line 519 of file unittest.py.

Constructor & Destructor Documentation

def __init__ (   self,
  stream 
)

Definition at line 521 of file unittest.py.

522  def __init__(self,stream):
523  self.stream = stream

Member Function Documentation

def __getattr__ (   self,
  attr 
)

Definition at line 524 of file unittest.py.

References StreamWriter.stream, StreamReader.stream, StreamReaderWriter.stream, StreamRecoder.stream, and _WritelnDecorator.stream.

525  def __getattr__(self, attr):
526  return getattr(self.stream,attr)
def writeln (   self,
  args 
)

Definition at line 527 of file unittest.py.

References Devnull.write(), IOmessageWriter.write(), Pickler.write, openrsrc.write(), _Hqxcoderengine.write(), StreamWriter.write(), GzipFile.write(), StringIO.write(), _Rlecoderengine.write(), InteractiveInterpreter.write(), _fileobject.write(), BinHex.write(), Telnet.write(), StreamReaderWriter.write(), ConfigParser.write(), ZipFile.write(), _SpoofOut.write(), StreamRecoder.write(), Marshaller.write, and file_wrapper.write.

528  def writeln(self, *args):
529  if args: apply(self.write, args)
530  self.write('\n') # text-mode streams translate to \r\n if needed
531 

Field Documentation

stream

Definition at line 522 of file unittest.py.


The documentation for this class was generated from the following file: