Cleanup: pep8

This commit is contained in:
2014-11-05 10:42:59 +01:00
parent 7f57c74f02
commit 53cbb0fa55
7 changed files with 12 additions and 21 deletions

View File

@@ -136,7 +136,6 @@ class BlendFile:
# cache (could lazy init, incase we never use?)
self.block_from_offset = {block.addr_old: block for block in self.blocks if block.code != b'ENDB'}
def find_blocks_from_code(self, code):
assert(type(code) == bytes)
if code not in self.code_index:
@@ -243,7 +242,6 @@ class BlendFile:
sdna_index_from_id[dna_struct.dna_type_id] = sdna_index
structs.append(dna_struct)
fields_len = d[1]
dna_offset = 0
@@ -394,7 +392,6 @@ class BlendFileBlock:
else:
return None
# ----------------------
# Python convenience API
@@ -481,7 +478,6 @@ class BlendFileHeader:
)))
class DNAName:
"""
DNAName is a C-type name stored in the DNA