Fix UnicodeDecodeError in gen_key() when run with PyPy.
* FIXES #101: https://github.com/isislovecruft/python-gnupg/issues/101fix/101-pypy-gen-key
parent
917a3dcd89
commit
5895997554
|
@ -801,7 +801,7 @@ class GPG(GPGBase):
|
|||
key = key.replace('_','-').title()
|
||||
## to set 'cert', 'Key-Usage' must be blank string
|
||||
if not key in ('Key-Usage', 'Subkey-Usage'):
|
||||
if type(u'')(val).strip():
|
||||
if type('')(val).strip():
|
||||
parms[key] = val
|
||||
|
||||
## if Key-Type is 'default', make Subkey-Type also be 'default'
|
||||
|
|
Loading…
Reference in New Issue