Mirror von
https://github.com/mail-in-a-box/mailinabox.git
synchronisiert 2026-09-13 00:28:01 +02:00
Fixed FURB188 (slice-to-remove-prefix-or-suffix): Prefer str.removeprefix() over conditionally replacing with slice.
Dieser Commit ist enthalten in:
@@ -463,8 +463,7 @@ def list_target_files(config):
|
||||
target_path = target.path
|
||||
if not target_path.endswith('/'):
|
||||
target_path += '/'
|
||||
if target_path.startswith('/'):
|
||||
target_path = target_path[1:]
|
||||
target_path = target_path.removeprefix('/')
|
||||
|
||||
rsync_command = [ 'rsync',
|
||||
'-e',
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren