|
5 | 5 | objects serialized or will be deserialized by ObjectOutputStream. This form of |
6 | 6 | object representation is a standard data interchange format in Java world. |
7 | 7 |
|
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. |
10 | 10 |
|
11 | 11 | See: |
12 | 12 | http://download.oracle.com/javase/6/docs/platform/serialization/spec/protocol.html |
@@ -405,13 +405,16 @@ class JavaObjectConstants(object): |
405 | 405 | class OpCodeDebug(object): |
406 | 406 | # Type codes |
407 | 407 | 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_")) |
409 | 410 |
|
410 | 411 | 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_")) |
412 | 414 |
|
413 | 415 | 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_")) |
415 | 418 |
|
416 | 419 | @staticmethod |
417 | 420 | def op_id(op_id): |
@@ -595,7 +598,7 @@ def do_classdesc(self, parent=None, ident=0): |
595 | 598 | # classDescInfo: |
596 | 599 | # classDescFlags fields classAnnotation superClassDesc |
597 | 600 | # classDescFlags: |
598 | | - # (byte) // Defined in Terminal Symbols and Constants |
| 601 | + # (byte) // Defined in Terminal Symbols and Constants |
599 | 602 | # fields: |
600 | 603 | # (short)<count> fieldDesc[count] |
601 | 604 |
|
@@ -1413,9 +1416,10 @@ def create(self, classdesc): |
1413 | 1416 | """ |
1414 | 1417 |
|
1415 | 1418 | 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 |
1419 | 1423 | log_debug("---") |
1420 | 1424 | log_debug(classdesc.name) |
1421 | 1425 | log_debug("---") |
|
0 commit comments