Use ==/!= to compare str, bytes, and int literals

This commit is contained in:
cclauss
2019-03-19 21:40:06 +01:00
parent 581a6a725a
commit bb31716c97
6 changed files with 7 additions and 7 deletions

View File

@@ -198,7 +198,7 @@ class FormatInterpolateVisitor(BaseVisitor):
node: The AST root node.
"""
if isinstance(node.func, ast.Attribute) and node.func.attr is 'format':
if isinstance(node.func, ast.Attribute) and node.func.attr == 'format':
if self.format_caller_node is None:
# Store the caller, or left-hand-side node of the initial
# format() call.