@@ -221,7 +221,8 @@ def _read_and_exec_opcode(self, ident=0, expect=None):
221221
222222 if expect and opid not in expect :
223223 raise IOError (
224- "Unexpected opcode 0x{0:X} -- {1} (at offset 0x{2:X})" .format (
224+ "Unexpected opcode 0x{0:X} -- {1} "
225+ "(at offset 0x{2:X})" .format (
225226 opid , StreamCodeDebug .op_id (opid ), position
226227 )
227228 )
@@ -230,9 +231,8 @@ def _read_and_exec_opcode(self, ident=0, expect=None):
230231 handler = self .opmap [opid ]
231232 except KeyError :
232233 raise RuntimeError (
233- "Unknown OpCode in the stream: 0x{0:X} (at offset 0x{1:X})" .format (
234- opid , position
235- )
234+ "Unknown OpCode in the stream: 0x{0:X} "
235+ "(at offset 0x{1:X})" .format (opid , position )
236236 )
237237 else :
238238 return opid , handler (ident = ident )
@@ -656,7 +656,9 @@ def do_array(self, parent=None, ident=0):
656656 array = JavaByteArray (self .object_stream .read (size ), classdesc )
657657 elif self .use_numpy_arrays and numpy is not None :
658658 array = numpy .fromfile (
659- self .object_stream , dtype = NUMPY_TYPE_MAP [type_code ], count = size ,
659+ self .object_stream ,
660+ dtype = NUMPY_TYPE_MAP [type_code ],
661+ count = size ,
660662 )
661663 else :
662664 for _ in range (size ):
@@ -823,7 +825,8 @@ def _oops_dump_state(self, ignore_remaining_data=False):
823825 log_error ("==Oops state dump" + "=" * (30 - 17 ))
824826 log_error ("References: {0}" .format (self .references ))
825827 log_error (
826- "Stream seeking back at -16 byte (2nd line is an actual position!):"
828+ "Stream seeking back at -16 byte "
829+ "(2nd line is an actual position!):"
827830 )
828831
829832 # Do not use a keyword argument
0 commit comments