VirtualMailManager/__init__.py
branchv0.6.x
changeset 187 38b9a9859749
parent 185 6e1ef32fbd82
child 188 cf1b5f22dbd2
equal deleted inserted replaced
186:18757fd45e60 187:38b9a9859749
    74     binary = expand_path(binary)
    74     binary = expand_path(binary)
    75     if not os.path.isfile(binary):
    75     if not os.path.isfile(binary):
    76         raise VMMException(_(u'“%s” is not a file') % get_unicode(binary),
    76         raise VMMException(_(u'“%s” is not a file') % get_unicode(binary),
    77                            NO_SUCH_BINARY)
    77                            NO_SUCH_BINARY)
    78     if not os.access(binary, os.X_OK):
    78     if not os.access(binary, os.X_OK):
    79         raise VMMException(_(u'File is not executable: “%s”') % \
    79         raise VMMException(_(u'File is not executable: “%s”') %
    80                            get_unicode(binary), NOT_EXECUTABLE)
    80                            get_unicode(binary), NOT_EXECUTABLE)
    81     return binary
    81     return binary
    82 
    82 
    83 def idn2ascii(domainname):
    83 def idn2ascii(domainname):
    84     """Converts the idn domain name `domainname` into punycode."""
    84     """Converts the idn domain name `domainname` into punycode."""