diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-05-28 09:05:46 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-05-28 09:58:50 +0300 |
commit | 3bee77bb7c234832b9ca00222e1e90a24f6437b0 (patch) | |
tree | e2795ffc68e4d18487b352e93e1405fe56ed83d1 /doc | |
parent | 6b03621c018acc3b343caa1d8d2aad746fcffc08 (diff) |
Cleanup: use static set syntax
Diffstat (limited to 'doc')
-rw-r--r-- | doc/blender_file_format/BlendFileReader.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/blender_file_format/BlendFileReader.py b/doc/blender_file_format/BlendFileReader.py index d4aed722578..a2f214bc4fc 100644 --- a/doc/blender_file_format/BlendFileReader.py +++ b/doc/blender_file_format/BlendFileReader.py @@ -85,7 +85,7 @@ def openBlendFile(filename): ''' handle = open(filename, 'rb') magic = ReadString(handle, 7) - if magic in ("BLENDER", "BULLETf"): + if magic in {"BLENDER", "BULLETf"}: log.debug("normal blendfile detected") handle.seek(0, os.SEEK_SET) return handle @@ -137,7 +137,7 @@ class BlendFile: fileblock = BlendFileBlock(handle, self) found_dna_block = False while not found_dna_block: - if fileblock.Header.Code in ("DNA1", "SDNA"): + if fileblock.Header.Code in {"DNA1", "SDNA"}: self.Catalog = DNACatalog(self.Header, handle) found_dna_block = True else: |