Refactoring, added docstrings
This commit is contained in:
1 parent
e9477dfde7
commit
1662127c85
11 files changed
+135
-64
No files matched your search
@@ -2,6 +2,11 @@ import sqlitedict
|
||||
|
||||
|
||||
class AuthFile(sqlitedict.SqliteDict):
|
||||
"""
|
||||
Valid AuthFile has fields:
|
||||
host - .onion url of service
|
||||
auth - v3 onion auth string in format, that can be written to .auth_private file
|
||||
"""
|
||||
def __init__(self, service):
|
||||
super().__init__(
|
||||
filename=f'{service}.auth',
|
||||
|
||||
Reference in new issue
Block a user