flake8 format

main
Bob Mottram 2020-04-03 17:01:25 +00:00
parent 295814cd9b
commit 08a1b05a76
1 changed files with 24 additions and 21 deletions

View File

@ -8,7 +8,9 @@ __status__="Production"
import os import os
def migrateFollows(followFilename: str,oldHandle: str,newHandle: str) -> None:
def migrateFollows(followFilename: str, oldHandle: str,
newHandle: str) -> None:
"""Changes a handle within following or followers list """Changes a handle within following or followers list
""" """
if not os.path.isfile(followFilename): if not os.path.isfile(followFilename):
@ -26,6 +28,7 @@ def migrateFollows(followFilename: str,oldHandle: str,newHandle: str) -> None:
with open(followFilename, 'w') as followFile: with open(followFilename, 'w') as followFile:
followFile.write(newFollowData) followFile.write(newFollowData)
def migrateAccount(baseDir: str, oldHandle: str, newHandle: str) -> None: def migrateAccount(baseDir: str, oldHandle: str, newHandle: str) -> None:
"""If a followed account changes then this modifies the """If a followed account changes then this modifies the
following and followers lists for each account accordingly following and followers lists for each account accordingly
@ -35,7 +38,7 @@ def migrateAccount(baseDir: str,oldHandle: str,newHandle: str) -> None:
if '@' not in oldHandle: if '@' not in oldHandle:
return return
if newHandle.startswith('@'): if newHandle.startswith('@'):
ewHandle=newHandle[1:] newHandle = newHandle[1:]
if '@' not in newHandle: if '@' not in newHandle:
return return