mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-10-27 06:19:53 +01:00
Fixed UP015 (redundant-open-modes): Unnecessary open mode parameters
This commit is contained in:
committed by
Joshua Tauberer
parent
0ee64f2fe8
commit
cb922ec286
+1
-1
@@ -47,7 +47,7 @@ def read_password():
|
||||
return first
|
||||
|
||||
def setup_key_auth(mgmt_uri):
|
||||
with open('/var/lib/mailinabox/api.key', 'r') as f:
|
||||
with open('/var/lib/mailinabox/api.key') as f:
|
||||
key = f.read().strip()
|
||||
|
||||
auth_handler = urllib.request.HTTPBasicAuthHandler()
|
||||
|
||||
Reference in New Issue
Block a user