diff options
Diffstat (limited to 'doc/blender_file_format')
-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: |