crypt: fix socket_path fallback (to SOCKET_PATH) in get_client().
authorW. Trevor King <wking@tremily.us>
Sat, 20 Oct 2012 18:48:10 +0000 (14:48 -0400)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Oct 2012 18:48:10 +0000 (14:48 -0400)
pgp_mime/crypt.py

index 7ba09c60c40c848686d3109d523db73424a27c66..57cfb77862fc8c38589b2326f89ad9c8e38a5ad1 100644 (file)
@@ -55,7 +55,7 @@ def get_client_params(config):
 
 def get_client(socket_path=None):
     if socket_path is None:
-        socket_path = socket_path
+        socket_path = SOCKET_PATH
     logger = _logging.getLogger('{}.{}'.format(_LOG.name, 'pyassuan'))
     client = _client.AssuanClient(
         name='pgp-mime', logger=logger, use_sublogger=False,