summaryrefslogtreecommitdiff
path: root/alot/account.py
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2011-12-21 16:37:38 +0000
committerPatrick Totzke <patricktotzke@gmail.com>2011-12-21 17:10:15 +0000
commit614a36ee0247e5c4b40ca4565aa2a26e68391059 (patch)
treef4d7c45499938e9c0d0bba7021b57511e955197c /alot/account.py
parent558b859d7dacd47deb67170afbd45ac173ba12e7 (diff)
use call_cmd in message and account
instead of depricated `cmd_output`
Diffstat (limited to 'alot/account.py')
-rw-r--r--alot/account.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/alot/account.py b/alot/account.py
index ce096b28..0404aa82 100644
--- a/alot/account.py
+++ b/alot/account.py
@@ -8,7 +8,6 @@ import shlex
from ConfigParser import SafeConfigParser
from urlparse import urlparse
-from helper import cmd_output
import helper
@@ -322,7 +321,7 @@ class MatchSdtoutAddressbook(AddressBook):
def lookup(self, prefix):
cmdlist = shlex.split(self.command.encode('utf-8', errors='ignore'))
- resultstring = cmd_output(cmdlist + [prefix])
+ resultstring, errmsg, retval = helper.call_cmd(cmdlist + [prefix])
if not resultstring:
return []
lines = resultstring.replace('\t', ' ' * 4).splitlines()