Module shlex :: Class shlex
[hide private]
[frames] | no frames]

_ClassType shlex

A lexical analyzer class for simple shell-like syntaxes.

Instance Methods [hide private]
 
__init__(self, instream=None, infile=None, posix=False)
 
push_token(self, tok)
Push a token onto the stack popped by the get_token method
 
push_source(self, newstream, newfile=None)
Push an input source onto the lexer's input source stack.
 
pop_source(self)
Pop the input source stack.
 
get_token(self)
Get a token from the input stream (or from stack if it's nonempty)
 
read_token(self)
 
sourcehook(self, newfile)
Hook called on a filename to be sourced.
 
error_leader(self, infile=None, lineno=None)
Emit a C-compiler-like, Emacs-friendly error-message leader.
 
__iter__(self)
 
next(self)