VirtualMailManager/cli/__init__.py
branchv0.7.x
changeset 668 b4396a78c996
parent 663 de435d1aa1c0
child 676 2bc11dada296
equal deleted inserted replaced
667:502561385ddf 668:b4396a78c996
    17 from VirtualMailManager import ENCODING
    17 from VirtualMailManager import ENCODING
    18 from VirtualMailManager.constants import VMM_TOO_MANY_FAILURES
    18 from VirtualMailManager.constants import VMM_TOO_MANY_FAILURES
    19 from VirtualMailManager.errors import VMMError
    19 from VirtualMailManager.errors import VMMError
    20 
    20 
    21 
    21 
    22 __all__ = ('prog', 'get_winsize', 'read_pass', 'w_err', 'w_std')
    22 __all__ = ('get_winsize', 'read_pass', 'w_err', 'w_std')
    23 
    23 
    24 _ = lambda msg: msg
    24 _ = lambda msg: msg
    25 _std_write = os.sys.stdout.write
    25 _std_write = os.sys.stdout.write
    26 _err_write = os.sys.stderr.write
    26 _err_write = os.sys.stderr.write
    27 prog = os.path.basename(os.sys.argv[0])
       
    28 
    27 
    29 
    28 
    30 def w_std(*args):
    29 def w_std(*args):
    31     """Writes a line for each arg of *args*, encoded in the current
    30     """Writes a line for each arg of *args*, encoded in the current
    32     ENCODING, to stdout.
    31     ENCODING, to stdout.