def _create_gpg(user=None, gnupghome=None):
 if (not gnupghome):
  gnupghome = _get_user_gnupghome(user)
 if GPG_1_3_1:
  gpg = gnupg.GPG(homedir=gnupghome)
 else:
  gpg = gnupg.GPG(gnupghome=gnupghome)
 return gpg

def _create_gpg ( user = None , gnupghome = None ) : if ( not gnupghome ) : gnupghome = _get_user_gnupghome ( user ) if GPG_1_3_1 : gpg = gnupg . GPG ( homedir = gnupghome ) else : gpg = gnupg . GPG ( gnupghome = gnupghome ) return gpg
create the gpg object .