[all-commits] [llvm/llvm-project] 79f8c2: update string comparison in clang-format.py
MyDeveloperDay via All-commits
all-commits at lists.llvm.org
Fri Dec 6 09:37:15 PST 2019
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 79f8c20e2cb634c1b8e42f01b42fc5ab2a512d60
https://github.com/llvm/llvm-project/commit/79f8c20e2cb634c1b8e42f01b42fc5ab2a512d60
Author: mydeveloperday <mydeveloperday at gmail.com>
Date: 2019-12-06 (Fri, 06 Dec 2019)
Changed paths:
M clang/tools/clang-format/clang-format.py
Log Message:
-----------
update string comparison in clang-format.py
Summary: Python 3.8 introduces a SyntaxWarning about string comparisons with 'is'. This commit updates the string comparison in clang-format.py that is done with 'is not' to '!='. This should not break compatibility with older python versions (tested 3.4.9, 2.7.17, 2.7.5, 3.8.0).
Reviewers: MyDeveloperDay, klimek, llvm-commits, cfe-commits
Reviewed By: MyDeveloperDay, klimek
Patch By: pseyfert
Tags: #clang-format, #clang
Differential Revision: https://reviews.llvm.org/D70664
More information about the All-commits
mailing list