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

@@ -96,7 +96,6 @@ def pack(blendfile_src, blendfile_dst, mode='FILE',
path_temp_files.add(filepath_tmp)
return filepath_tmp
# base_dir_src = os.path.dirname(blendfile_src)
base_dir_dst = os.path.dirname(blendfile_dst)
@@ -184,7 +183,6 @@ def pack(blendfile_src, blendfile_dst, mode='FILE',
del blendfile_dst_tmp
del sha1_from_file
# --------------------
# Handle File Copy/Zip
@@ -232,6 +230,7 @@ def pack(blendfile_src, blendfile_dst, mode='FILE',
if WRITE_JSON_REMAP:
import json
def write_dict_as_json(fn, dct):
zip.writestr(
fn,
@@ -250,7 +249,6 @@ def pack(blendfile_src, blendfile_dst, mode='FILE',
del write_dict_as_json
yield report(" %s: %r\n" % (colorize("written", color='green'), blendfile_dst))
else:
raise Exception("%s not a known mode" % mode)
@@ -316,7 +314,6 @@ def main():
sort_keys=True, indent=4, separators=(',', ': '),
)
if deps_remap is not None:
write_dict_as_json(args.deps_remap, deps_remap)