Mercurial > hg-stable
comparison mercurial/mail.py @ 14271:4030630fb59c
rename util.find_exe to findexe
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Sun, 08 May 2011 20:35:46 +0200 |
parents | 600e64004eb5 |
children | 194b043dfa51 |
comparison
equal
deleted
inserted
replaced
14268:a55a0045704c | 14271:4030630fb59c |
---|---|
110 if method == 'smtp': | 110 if method == 'smtp': |
111 if not ui.config('smtp', 'host'): | 111 if not ui.config('smtp', 'host'): |
112 raise util.Abort(_('smtp specified as email transport, ' | 112 raise util.Abort(_('smtp specified as email transport, ' |
113 'but no smtp host configured')) | 113 'but no smtp host configured')) |
114 else: | 114 else: |
115 if not util.find_exe(method): | 115 if not util.findexe(method): |
116 raise util.Abort(_('%r specified as email transport, ' | 116 raise util.Abort(_('%r specified as email transport, ' |
117 'but not in PATH') % method) | 117 'but not in PATH') % method) |
118 | 118 |
119 def mimetextpatch(s, subtype='plain', display=False): | 119 def mimetextpatch(s, subtype='plain', display=False): |
120 '''If patch in utf-8 transfer-encode it.''' | 120 '''If patch in utf-8 transfer-encode it.''' |