X-Git-Url: http://git.onelab.eu/?p=nodemanager.git;a=blobdiff_plain;f=ticket.py;h=a52be173be217c32f74c5fd54d055ec50faf30dd;hp=00129086c3d8ae031e1ce3c602bd4cc318685813;hb=HEAD;hpb=d3a3b2d3ea98e72183d1cb5497c38badaa0c5863 diff --git a/ticket.py b/ticket.py index 0012908..a52be17 100644 --- a/ticket.py +++ b/ticket.py @@ -1,6 +1,3 @@ -# $Id$ -# $URL$ - """An extremely simple interface to the signing/verifying capabilities of gnupg. @@ -8,9 +5,11 @@ You must already have the key in the keyring. """ from subprocess import PIPE, Popen -from xmlrpclib import dumps, loads +from xmlrpc.client import dumps, loads -GPG = '/usr/bin/gpg' +# see also myplc/plc.d/gpg +import os.path +GPG = '/usr/bin/gpg1' if os.path.exists("/usr/bin/gpg1") else "/usr/bin/gpg" def _popen_gpg(*args): """Return a Popen object to GPG."""