mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-03 00:07:05 +00:00
Fixed UP015 (redundant-open-modes): Unnecessary mode argument
This commit is contained in:
parent
1438be290a
commit
6fc049353c
@ -148,7 +148,7 @@ def get_mail_users_ex(env, with_archived=False):
|
|||||||
percent = ''
|
percent = ''
|
||||||
try:
|
try:
|
||||||
dirsize_file = os.path.join(env['STORAGE_ROOT'], f'mail/mailboxes/{domain}/{user}/maildirsize')
|
dirsize_file = os.path.join(env['STORAGE_ROOT'], f'mail/mailboxes/{domain}/{user}/maildirsize')
|
||||||
with open(dirsize_file, 'r') as f:
|
with open(dirsize_file, encoding="utf-8") as f:
|
||||||
box_quota = int(f.readline().split('S')[0])
|
box_quota = int(f.readline().split('S')[0])
|
||||||
for line in f.readlines():
|
for line in f.readlines():
|
||||||
(size, count) = line.split(' ')
|
(size, count) = line.split(' ')
|
||||||
|
Loading…
Reference in New Issue
Block a user