From e3724d29ffb753867ebd1c52f7b644fdcb2bba25 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 26 Apr 2022 15:03:04 +1000 Subject: Cleanup: autopep8 --- doc/blender_file_format/BlendFileDnaExporter_25.py | 2 +- doc/python_api/examples/gpu.8.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/blender_file_format/BlendFileDnaExporter_25.py b/doc/blender_file_format/BlendFileDnaExporter_25.py index 91a313b789f..f84f7482baf 100755 --- a/doc/blender_file_format/BlendFileDnaExporter_25.py +++ b/doc/blender_file_format/BlendFileDnaExporter_25.py @@ -411,7 +411,7 @@ def main(): # read blend header from blend file log.info("2: read file:") - if not dir in sys.path: + if dir not in sys.path: sys.path.append(dir) import BlendFileReader diff --git a/doc/python_api/examples/gpu.8.py b/doc/python_api/examples/gpu.8.py index 86a242b0258..385b71d0c1a 100644 --- a/doc/python_api/examples/gpu.8.py +++ b/doc/python_api/examples/gpu.8.py @@ -43,7 +43,7 @@ with offscreen.bind(): offscreen.free() -if not IMAGE_NAME in bpy.data.images: +if IMAGE_NAME not in bpy.data.images: bpy.data.images.new(IMAGE_NAME, WIDTH, HEIGHT) image = bpy.data.images[IMAGE_NAME] image.scale(WIDTH, HEIGHT) -- cgit v1.2.3