From 013fc69ea8feba0dfcb35ae6b8f5207753af3202 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 15 Jun 2021 10:44:08 +1000 Subject: Cleanup: unused argument & variable warnings --- release/scripts/modules/bl_i18n_utils/utils.py | 2 +- release/scripts/modules/bl_i18n_utils/utils_cli.py | 2 +- release/scripts/modules/bl_i18n_utils/utils_rtl.py | 4 ++-- release/scripts/modules/keyingsets_utils.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) (limited to 'release/scripts/modules') diff --git a/release/scripts/modules/bl_i18n_utils/utils.py b/release/scripts/modules/bl_i18n_utils/utils.py index b17c9eeebc5..f63b6990cdd 100644 --- a/release/scripts/modules/bl_i18n_utils/utils.py +++ b/release/scripts/modules/bl_i18n_utils/utils.py @@ -1572,7 +1572,7 @@ class I18n: if not os.path.isfile(dst): print("WARNING: trying to write as python code into {}, which is not a file! Aborting.".format(dst)) return - prev, txt, nxt, has_trans = self._parser_check_file(dst) + prev, txt, nxt, _has_trans = self._parser_check_file(dst) if prev is None and nxt is None: print("WARNING: Looks like given python file {} has no auto-generated translations yet, will be added " "at the end of the file, you can move that section later if needed...".format(dst)) diff --git a/release/scripts/modules/bl_i18n_utils/utils_cli.py b/release/scripts/modules/bl_i18n_utils/utils_cli.py index 76dd8a740c5..d3750d5e9a4 100644 --- a/release/scripts/modules/bl_i18n_utils/utils_cli.py +++ b/release/scripts/modules/bl_i18n_utils/utils_cli.py @@ -71,7 +71,7 @@ def rtl_process_po(args, settings): po.write(kind="PO", dest=args.dst) -def language_menu(args, settings): +def language_menu(_args, settings): # 'DEFAULT' and en_US are always valid, fully-translated "languages"! stats = {"DEFAULT": 1.0, "en_US": 1.0} diff --git a/release/scripts/modules/bl_i18n_utils/utils_rtl.py b/release/scripts/modules/bl_i18n_utils/utils_rtl.py index 8da1417c468..4b874efa2da 100755 --- a/release/scripts/modules/bl_i18n_utils/utils_rtl.py +++ b/release/scripts/modules/bl_i18n_utils/utils_rtl.py @@ -84,10 +84,10 @@ def protect_format_seq(msg): # LRM = "\u200E" # RLM = "\u200F" LRE = "\u202A" - RLE = "\u202B" +# RLE = "\u202B" PDF = "\u202C" LRO = "\u202D" - RLO = "\u202E" +# RLO = "\u202E" # uctrl = {LRE, RLE, PDF, LRO, RLO} # Most likely incomplete, but seems to cover current needs. format_codes = set("tslfd") diff --git a/release/scripts/modules/keyingsets_utils.py b/release/scripts/modules/keyingsets_utils.py index b7a15bbbc19..de0b1435803 100644 --- a/release/scripts/modules/keyingsets_utils.py +++ b/release/scripts/modules/keyingsets_utils.py @@ -240,7 +240,7 @@ def RKS_GEN_custom_props(_ksi, _context, ks, data): prop_path = '["%s"]' % bpy.utils.escape_identifier(cprop_name) try: rna_property = data.path_resolve(prop_path, False) - except ValueError as ex: + except ValueError: # This happens when a custom property is set to None. In that case it cannot # be converted to an FCurve-compatible value, so we can't keyframe it anyway. continue -- cgit v1.2.3