From d09ca4561a7f8560771cd7bbcf5bdb7a01871726 Mon Sep 17 00:00:00 2001 From: Teal Dulcet Date: Wed, 8 Jan 2025 05:10:06 -0800 Subject: [PATCH] Fixed PLR6104 (non-augmented-assignment): Use `+=` to perform an augmented assignment directly --- management/backup.py | 2 +- management/dns_update.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/management/backup.py b/management/backup.py index a8e2444f..7dfd7619 100755 --- a/management/backup.py +++ b/management/backup.py @@ -463,7 +463,7 @@ def list_target_files(config): target_path = target.path if not target_path.endswith('/'): - target_path = target_path + '/' + target_path += "/" if target_path.startswith('/'): target_path = target_path[1:] diff --git a/management/dns_update.py b/management/dns_update.py index 1cc8a0da..ffb97ebe 100755 --- a/management/dns_update.py +++ b/management/dns_update.py @@ -918,7 +918,7 @@ def set_custom_dns_record(qname, rtype, value, action, env): # ensure value has a trailing dot if not value.endswith("."): - value = value + "." + value += "." if not re.search(DOMAIN_RE, value): msg = "Invalid value."