Back to index

moin  1.9.0~rc2
Public Member Functions | Public Attributes | Private Attributes Class Reference

List of all members.

Public Member Functions

def __init__
def write
def writelines
def __getattr__

Public Attributes


Private Attributes


Detailed Description

Wrapper for sys.stdout so we know if data has actually been written.

Definition at line 138 of file

Constructor & Destructor Documentation

Definition at line 142 of file

00143     def __init__(self, stdout):
00144         self._file = stdout
00145         self.dataWritten = False

Member Function Documentation

Definition at line 155 of file

00156     def __getattr__(self, name):
00157         return getattr(self._file, name)

Definition at line 146 of file

00147     def write(self, data):
00148         if data:
00149             self.dataWritten = True
00150         self._file.write(data)

Here is the caller graph for this function:

Definition at line 151 of file

00152     def writelines(self, lines):
00153         for line in lines:
00154             self.write(line)

Member Data Documentation

Definition at line 143 of file

Definition at line 144 of file

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