remove redundant check

This commit is contained in:
2014-10-14 18:16:30 +02:00
parent 6e3b9b1c4a
commit 0aa22d054d

View File

@@ -89,8 +89,6 @@ def open_blend(filename, access="rb"):
return res return res
###################################################### ######################################################
# Align alligns the filehandle on 4 bytes # Align alligns the filehandle on 4 bytes
###################################################### ######################################################
@@ -153,8 +151,6 @@ class BlendFile:
def find_blocks_from_code(self, code): def find_blocks_from_code(self, code):
assert(type(code) == bytes) assert(type(code) == bytes)
if len(code) == 2:
code = code
if code not in self.code_index: if code not in self.code_index:
return [] return []
return self.code_index[code] return self.code_index[code]