From 60f47d2d385001fd869854fdeb519c55e6b3a93f Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 2 Dec 2014 13:52:29 +0100 Subject: [PATCH] cleanup --- modules/blendfile_path_walker.py | 1 - tests/test_cli.py | 6 ++---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/modules/blendfile_path_walker.py b/modules/blendfile_path_walker.py index 7fcce14..ef3adc6 100644 --- a/modules/blendfile_path_walker.py +++ b/modules/blendfile_path_walker.py @@ -635,7 +635,6 @@ class ExpandID: for item in bf_utils.iter_ListBase(block.get_pointer(b'base.first')): yield item.get_pointer(b'object', sdna_index_refine=sdna_index_Base) - block_ed = block.get_pointer(b'ed') if block_ed is not None: sdna_index_Sequence = block.file.sdna_index_from_id[b'Sequence'] diff --git a/tests/test_cli.py b/tests/test_cli.py index 52f0fc3..e119728 100755 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -291,7 +291,6 @@ def bam_run_as_json(argv, cwd=None): return ret - def file_quick_write(path, filepart=None, data=None, append=False): """Quick file creation utility. """ @@ -1094,7 +1093,7 @@ class BamIgnoreTest(BamSessionTestCase): file_quick_write(subdir_path, "testfile.blend1", file_data) # now check for status - stdout, stderr = bam_run(["status",], session_path) + stdout, stderr = bam_run(["status", ], session_path) self.assertEqual("", stderr) # try to commit @@ -1102,7 +1101,6 @@ class BamIgnoreTest(BamSessionTestCase): self.assertEqual("", stderr) self.assertEqual("Nothing to commit!\n", stdout) - def test_invalid_ignore(self): session_name = "mysession" file_name = "testfile.txt" @@ -1123,7 +1121,7 @@ class BamIgnoreTest(BamSessionTestCase): file_quick_write(session_path, file_name, file_data) # now check for status - self.assertRaises(RuntimeError, bam_run, ["status",], session_path) + self.assertRaises(RuntimeError, bam_run, ["status", ], session_path) if __name__ == '__main__':