From 4ceb4dce61b0f69719d5cdacdf4cc24e2ee3da86 Mon Sep 17 00:00:00 2001 From: John Evans Date: Tue, 6 Jan 2015 16:37:55 -0500 Subject: [PATCH] pep8 work --- glymur/jp2box.py | 3 +-- glymur/test/test_jp2k.py | 2 +- glymur/test/test_printing.py | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/glymur/jp2box.py b/glymur/jp2box.py index 1cbd53a..bc23ebe 100644 --- a/glymur/jp2box.py +++ b/glymur/jp2box.py @@ -1031,8 +1031,7 @@ class ContiguousCodestreamBox(Jp2kBox): if self._filename is not None: with open(self._filename, 'rb') as fptr: fptr.seek(self.main_header_offset) - codestream = Codestream(fptr, - self._length, + codestream = Codestream(fptr, self._length, header_only=header_only) self._codestream = codestream return self._codestream diff --git a/glymur/test/test_jp2k.py b/glymur/test/test_jp2k.py index fe18022..8affe7d 100644 --- a/glymur/test/test_jp2k.py +++ b/glymur/test/test_jp2k.py @@ -1053,7 +1053,7 @@ class TestParsing(unittest.TestCase): """Should not warn if RSIZ when parsing is turned off.""" filename = opj_data_file('input/nonregression/edf_c2_1002767.jp2') glymur.set_parseoptions(full_codestream=False) - jp2 = Jp2k(filename) + Jp2k(filename) glymur.set_parseoptions(full_codestream=True) with self.assertWarnsRegex(UserWarning, 'Invalid profile'): diff --git a/glymur/test/test_printing.py b/glymur/test/test_printing.py index c141d65..dfdd505 100644 --- a/glymur/test/test_printing.py +++ b/glymur/test/test_printing.py @@ -1066,7 +1066,6 @@ class TestJp2dump(unittest.TestCase): self.assertEqual(actual, expected) @unittest.skipIf(sys.hexversion < 0x03000000, "assertRegex not in 2.7") - def test_jp2_codestream_0(self): """Verify dumping with -c 0, supressing all codestream details.""" actual = self.run_jp2dump(['', '-c', '0', self.jp2file])