From b071b210cd50952bff84a3f6f8da2ecb2c0d647b Mon Sep 17 00:00:00 2001 From: Rakuran Date: Wed, 26 Feb 2025 14:36:27 +1100 Subject: [PATCH] comparison-syntax-warning As of Python 3.8, using is and is not with constant literals will produce a SyntaxWarning. --- tc_aws/loaders/s3_loader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tc_aws/loaders/s3_loader.py b/tc_aws/loaders/s3_loader.py index bd08247..e32b676 100644 --- a/tc_aws/loaders/s3_loader.py +++ b/tc_aws/loaders/s3_loader.py @@ -115,7 +115,7 @@ def _get_key(path, context): :rtype: string """ root_path = context.config.get('TC_AWS_LOADER_ROOT_PATH') - return '/'.join([root_path, path]) if root_path is not '' else path + return '/'.join([root_path, path]) if root_path != '' else path def _validate_bucket(context, bucket):