pep8 work

This commit is contained in:
John Evans 2015-01-06 16:37:55 -05:00
commit 4ceb4dce61
3 changed files with 2 additions and 4 deletions

View file

@ -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

View file

@ -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'):

View file

@ -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])