File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed
Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -468,15 +468,15 @@ Note that even if it is not explicitly given, the `DefaultObjectTransformer`
468468will be also be used, as it is added automatically by ` javaobj ` if it is
469469missing from the given list.
470470
471- .. code-block:: python
472-
473- # Load the object using those transformers
474- transformers = [
475- CustomWriterTransformer (),
476- RandomChildTransformer(),
477- JavaRandomTransformer()
478- ]
479- pobj = javaobj.loads("custom_objects.ser", * transformers)
480-
481- # Here we show a field that doesn't belong to the class
482- print(pobj.field_data [ "int_not_in_fields" ]
471+ ``` python
472+ # Load the object using those transformers
473+ transformers = [
474+ CustomWriterTransformer(),
475+ RandomChildTransformer (),
476+ JavaRandomTransformer()
477+ ]
478+ pobj = javaobj.loads( " custom_objects.ser " , * transformers)
479+
480+ # Here we show a field that doesn't belong to the class
481+ print (pobj.field_data[ " int_not_in_fields " ]
482+ ```
You can’t perform that action at this time.
0 commit comments