diff options
author | Fred Hornsey <hornseyf@objectcomputing.com> | 2020-08-14 10:22:13 -0500 |
---|---|---|
committer | Fred Hornsey <hornseyf@objectcomputing.com> | 2020-08-14 10:22:13 -0500 |
commit | 24b0a422d6a39501fe0b56d79704dd552a314e45 (patch) | |
tree | f37f864c1ee94dd0b5506ddaa06061db42988079 /ACE/bin | |
parent | b3946a3be7d6566bd998b062bed44d578220e04f (diff) | |
download | ATCD-24b0a422d6a39501fe0b56d79704dd552a314e45.tar.gz |
make_release.py: Fix Use of "is" with Literals
Diffstat (limited to 'ACE/bin')
-rwxr-xr-x | ACE/bin/make_release.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ACE/bin/make_release.py b/ACE/bin/make_release.py index 91069dc99ef..9c33ade396c 100755 --- a/ACE/bin/make_release.py +++ b/ACE/bin/make_release.py @@ -278,11 +278,11 @@ def update_spec_file (): with open (path, 'r+') as spec_file: new_spec = "" for line in spec_file.readlines (): - if line.find ("define ACEVER ") is not -1: + if line.find ("define ACEVER ") != -1: line = "%define ACEVER " + comp_versions["ACE_version"] + "\n" - if line.find ("define TAOVER ") is not -1: + if line.find ("define TAOVER ") != -1: line = "%define TAOVER " + comp_versions["TAO_version"] + "\n" - if line.find ("define is_major_ver") is not -1: + if line.find ("define is_major_ver") != -1: line = "%define is_major_ver {}\n".format( int(opts.release_type != ReleaseType.micro)) |