flake8 format

main
Bob Mottram 2020-04-03 19:52:18 +01:00
parent 7d47d27dec
commit 97b0338441
1 changed files with 26 additions and 24 deletions

4
pgp.py
View File

@ -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
"""