Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
unittest.runner._WritelnDecorator Class Reference
Inheritance diagram for unittest.runner._WritelnDecorator:
Inheritance graph
[legend]
Collaboration diagram for unittest.runner._WritelnDecorator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def __getattr__
def writeln

Public Attributes

 stream
_PyObject_HEAD_EXTRA Py_ssize_t ob_refcnt
struct _typeobjectob_type

Detailed Description

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

Definition at line 13 of file runner.py.


Constructor & Destructor Documentation

def unittest.runner._WritelnDecorator.__init__ (   self,
  stream 
)

Definition at line 15 of file runner.py.

00015 
00016     def __init__(self,stream):
00017         self.stream = stream

Here is the caller graph for this function:


Member Function Documentation

Definition at line 18 of file runner.py.

00018 
00019     def __getattr__(self, attr):
00020         if attr in ('stream', '__getstate__'):
00021             raise AttributeError(attr)
00022         return getattr(self.stream,attr)

Here is the call graph for this function:

def unittest.runner._WritelnDecorator.writeln (   self,
  arg = None 
)

Definition at line 23 of file runner.py.

00023 
00024     def writeln(self, arg=None):
00025         if arg:
00026             self.write(arg)
00027         self.write('\n') # text-mode streams translate to \r\n if needed
00028 


Member Data Documentation

Definition at line 107 of file object.h.

struct _typeobject* _object::ob_type [inherited]

Definition at line 108 of file object.h.

Definition at line 16 of file runner.py.


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