Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
wsgiref.validate.InputWrapper Class Reference

List of all members.

Public Member Functions

def __init__
def read
def readline
def readlines
def __iter__
def close

Public Attributes

 input

Detailed Description

Definition at line 191 of file validate.py.


Constructor & Destructor Documentation

def wsgiref.validate.InputWrapper.__init__ (   self,
  wsgi_input 
)

Definition at line 193 of file validate.py.

00193 
00194     def __init__(self, wsgi_input):
00195         self.input = wsgi_input

Here is the caller graph for this function:


Member Function Documentation

Definition at line 216 of file validate.py.

00216 
00217     def __iter__(self):
00218         while 1:
00219             line = self.readline()
00220             if not line:
00221                 return
00222             yield line

Here is the call graph for this function:

Definition at line 223 of file validate.py.

00223 
00224     def close(self):
00225         assert_(0, "input.close() must not be called")

Here is the call graph for this function:

Here is the caller graph for this function:

def wsgiref.validate.InputWrapper.read (   self,
  args 
)

Definition at line 196 of file validate.py.

00196 
00197     def read(self, *args):
00198         assert_(len(args) == 1)
00199         v = self.input.read(*args)
00200         assert_(type(v) is bytes)
00201         return v

Here is the call graph for this function:

Here is the caller graph for this function:

def wsgiref.validate.InputWrapper.readline (   self,
  args 
)

Definition at line 202 of file validate.py.

00202 
00203     def readline(self, *args):
00204         assert_(len(args) <= 1)
00205         v = self.input.readline(*args)
00206         assert_(type(v) is bytes)
00207         return v

Here is the call graph for this function:

Here is the caller graph for this function:

def wsgiref.validate.InputWrapper.readlines (   self,
  args 
)

Definition at line 208 of file validate.py.

00208 
00209     def readlines(self, *args):
00210         assert_(len(args) <= 1)
00211         lines = self.input.readlines(*args)
00212         assert_(type(lines) is list)
00213         for line in lines:
00214             assert_(type(line) is bytes)
00215         return lines

Here is the call graph for this function:


Member Data Documentation

Definition at line 194 of file validate.py.


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