Skip to content
Snippets Groups Projects
Commit 1c028744 authored by Campbell Barton's avatar Campbell Barton
Browse files

Cleanup: comparisons with None

parent d7d7e9d4
No related branches found
No related tags found
No related merge requests found
...@@ -32,7 +32,7 @@ if len(sys.argv) >= 2: ...@@ -32,7 +32,7 @@ if len(sys.argv) >= 2:
if sys.argv[2] == '--base_branch': if sys.argv[2] == '--base_branch':
base_branch = sys.argv[3] base_branch = sys.argv[3]
if mode == None: if mode is None:
print("Merge or rebase Blender master (or another base branch) into a branch in 3 steps,") print("Merge or rebase Blender master (or another base branch) into a branch in 3 steps,")
print("to automatically merge clang-format changes.") print("to automatically merge clang-format changes.")
print("") print("")
......
...@@ -149,7 +149,7 @@ def benchmarkFile(blender, blendfile, stats): ...@@ -149,7 +149,7 @@ def benchmarkFile(blender, blendfile, stats):
pipeline_render_time = "N/A" pipeline_render_time = "N/A"
while True: while True:
line = process.stdout.readline() line = process.stdout.readline()
if line == b"" and process.poll() != None: if line == b"" and process.poll() is not None:
break break
line = line.decode().strip() line = line.decode().strip()
if line == "": if line == "":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment