Skip to content

Commit a1dd154

Browse files
committed
Code review for PEP-8 compliance
1 parent 8b3a48c commit a1dd154

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

javaobj.py

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
objects serialized or will be deserialized by ObjectOutputStream. This form of
66
object representation is a standard data interchange format in Java world.
77
8-
javaobj module exposes an API familiar to users of the standard library marshal,
9-
pickle and json modules.
8+
javaobj module exposes an API familiar to users of the standard library
9+
marshal, pickle and json modules.
1010
1111
See:
1212
http://download.oracle.com/javase/6/docs/platform/serialization/spec/protocol.html
@@ -405,13 +405,16 @@ class JavaObjectConstants(object):
405405
class OpCodeDebug(object):
406406
# Type codes
407407
OP_CODE = dict((getattr(JavaObjectConstants, key), key)
408-
for key in dir(JavaObjectConstants) if key.startswith("TC_"))
408+
for key in dir(JavaObjectConstants)
409+
if key.startswith("TC_"))
409410

410411
TYPE = dict((getattr(JavaObjectConstants, key), key)
411-
for key in dir(JavaObjectConstants) if key.startswith("TYPE_"))
412+
for key in dir(JavaObjectConstants)
413+
if key.startswith("TYPE_"))
412414

413415
STREAM_CONSTANT = dict((getattr(JavaObjectConstants, key), key)
414-
for key in dir(JavaObjectConstants) if key.startswith("SC_"))
416+
for key in dir(JavaObjectConstants)
417+
if key.startswith("SC_"))
415418

416419
@staticmethod
417420
def op_id(op_id):
@@ -595,7 +598,7 @@ def do_classdesc(self, parent=None, ident=0):
595598
# classDescInfo:
596599
# classDescFlags fields classAnnotation superClassDesc
597600
# classDescFlags:
598-
# (byte) // Defined in Terminal Symbols and Constants
601+
# (byte) // Defined in Terminal Symbols and Constants
599602
# fields:
600603
# (short)<count> fieldDesc[count]
601604

@@ -1413,9 +1416,10 @@ def create(self, classdesc):
14131416
"""
14141417

14151418
if classdesc.name in ("java.util.ArrayList", "java.util.LinkedList"):
1416-
# @serialData The length of the array backing the <tt>ArrayList</tt>
1417-
# instance is emitted (int), followed by all of its
1418-
# elements (each an <tt>Object</tt>) in the proper order
1419+
# @serialData The length of the array backing the
1420+
# <tt>ArrayList</tt> instance is emitted (int),
1421+
# followed by all of its elements
1422+
# (each an <tt>Object</tt>) in the proper order
14191423
log_debug("---")
14201424
log_debug(classdesc.name)
14211425
log_debug("---")

0 commit comments

Comments
 (0)