forked from indymedia/epicyon
flake8 format
parent
7d47d27dec
commit
97b0338441
4
pgp.py
4
pgp.py
|
@ -6,7 +6,6 @@ __maintainer__="Bob Mottram"
|
|||
__email__ = "bob@freedombone.net"
|
||||
__status__ = "Production"
|
||||
|
||||
import json
|
||||
|
||||
def getEmailAddress(actorJson: {}) -> str:
|
||||
"""Returns the email address for the given actor
|
||||
|
@ -31,6 +30,7 @@ def getEmailAddress(actorJson: {}) -> str:
|
|||
return propertyValue['value']
|
||||
return ''
|
||||
|
||||
|
||||
def getPGPpubKey(actorJson: {}) -> str:
|
||||
"""Returns PGP public key for the given actor
|
||||
"""
|
||||
|
@ -52,6 +52,7 @@ def getPGPpubKey(actorJson: {}) -> str:
|
|||
return propertyValue['value']
|
||||
return ''
|
||||
|
||||
|
||||
def setEmailAddress(actorJson: {}, emailAddress: str) -> None:
|
||||
"""Sets the email address for the given actor
|
||||
"""
|
||||
|
@ -98,6 +99,7 @@ def setEmailAddress(actorJson: {},emailAddress: str) -> None:
|
|||
}
|
||||
actorJson['attachment'].append(newEmailAddress)
|
||||
|
||||
|
||||
def setPGPpubKey(actorJson: {}, PGPpubKey: str) -> None:
|
||||
"""Sets a PGP public key for the given actor
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue