[elghinn] Cleaner way to check if we have gpg
This commit is contained in:
parent
8b8f139f79
commit
0ca9610680
1 changed files with 2 additions and 4 deletions
|
@ -160,11 +160,9 @@ try:
|
|||
except ImportError:
|
||||
HAVE_GPG = False
|
||||
else:
|
||||
import os
|
||||
status = os.system('gpg -h >/dev/null 2>&1')
|
||||
if status != 0:
|
||||
from os import system
|
||||
if system('gpg -h >/dev/null 2>&1'):
|
||||
HAVE_GPG = False
|
||||
del status
|
||||
|
||||
def get_nick_from_jid(jid):
|
||||
pos = jid.find('@')
|
||||
|
|
Loading…
Add table
Reference in a new issue