From 0aa22d054dff742d7063e45b9a89c66059b5673b Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 14 Oct 2014 18:16:30 +0200 Subject: [PATCH] remove redundant check --- blendfile.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/blendfile.py b/blendfile.py index 55c7148..f5cd7ae 100644 --- a/blendfile.py +++ b/blendfile.py @@ -89,8 +89,6 @@ def open_blend(filename, access="rb"): return res - - ###################################################### # Align alligns the filehandle on 4 bytes ###################################################### @@ -153,8 +151,6 @@ class BlendFile: def find_blocks_from_code(self, code): assert(type(code) == bytes) - if len(code) == 2: - code = code if code not in self.code_index: return [] return self.code_index[code]