pep8 work
This commit is contained in:
parent
a24bff0af1
commit
4ceb4dce61
3 changed files with 2 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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'):
|
||||
|
|
|
|||
|
|
@ -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])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue