VirtualMailManager/cli/__init__.py
branchv0.6.x
changeset 314 0b4a6e9d9f27
parent 312 6f39a1e56f4a
child 315 81bccfd14355
equal deleted inserted replaced
313:c17c46d9e440 314:0b4a6e9d9f27
     9     VirtualMailManager's command line interface.
     9     VirtualMailManager's command line interface.
    10 """
    10 """
    11 
    11 
    12 import os
    12 import os
    13 from array import array
    13 from array import array
    14 from cStringIO import StringIO
       
    15 from fcntl import ioctl
    14 from fcntl import ioctl
    16 from getpass import getpass
    15 from getpass import getpass
    17 from termios import TIOCGWINSZ
    16 from termios import TIOCGWINSZ
    18 
    17 
    19 from VirtualMailManager import ENCODING
    18 from VirtualMailManager import ENCODING
    96             w_err(0, _(u'Sorry, empty passwords are not permitted'))
    95             w_err(0, _(u'Sorry, empty passwords are not permitted'))
    97             continue
    96             continue
    98         mismatched = False
    97         mismatched = False
    99     return clear0
    98     return clear0
   100 
    99 
   101 
       
   102 def string_io():
       
   103     """Returns a new `cStringIO.StringIO` instance."""
       
   104     return StringIO()
       
   105 
       
   106 del _
   100 del _