equal
deleted
inserted
replaced
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.""" |