Back to index

python3.2  3.2.2
Public Member Functions
doctest._SpoofOut Class Reference
Inheritance diagram for doctest._SpoofOut:
Inheritance graph
[legend]
Collaboration diagram for doctest._SpoofOut:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def getvalue
def truncate

Detailed Description

Definition at line 245 of file doctest.py.


Member Function Documentation

Definition at line 246 of file doctest.py.

00246 
00247     def getvalue(self):
00248         result = StringIO.getvalue(self)
00249         # If anything at all was written, make sure there's a trailing
00250         # newline.  There's no way for the expected output to indicate
00251         # that a trailing newline is missing.
00252         if result and not result.endswith("\n"):
00253             result += "\n"
00254         return result

Here is the caller graph for this function:

def doctest._SpoofOut.truncate (   self,
  size = None 
)

Definition at line 255 of file doctest.py.

00255 
00256     def truncate(self, size=None):
00257         self.seek(size)
00258         StringIO.truncate(self)
00259 
# Worst-case linear-time ellipsis matching.

Here is the call graph for this function:


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