mirror of
https://gitlab.com/bashrc2/epicyon
synced 2026-10-30 17:43:44 +00:00
flake8 format
This commit is contained in:
1 parent
295814cd9b
commit
08a1b05a76
1 file changed
+5
-2
+5
-2
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user