@@ -511,30 +511,6 @@ The :mod:`pickle` module exports three classes, :class:`Pickler`,
511511      Release the underlying buffer exposed by the PickleBuffer object.
512512
513513
514- .. _pickle-cli :
515- 
516- Command-line interface
517- ---------------------- 
518- 
519- The :mod: `pickle ` module can be invoked as a script from the command line,
520- it will display contents of the pickle files. However, when the pickle file
521- that you want to examine comes from an untrusted source, ``-m pickletools ``
522- is a safer option because it does not execute pickle bytecode, see
523- :ref: `pickletools CLI usage  <pickletools-cli >`.
524- 
525- .. code-block :: bash 
526- 
527-    python -m pickle pickle_file [pickle_file ...] 
528- 
529-  The following option is accepted:
530- 
531- .. program :: pickle 
532- 
533- .. option :: pickle_file 
534- 
535-    A pickle file to read or ``- `` to indicate reading from standard input.
536- 
537- 
538514.. _pickle-picklable :
539515
540516What can be pickled and unpickled?
@@ -1234,6 +1210,30 @@ The following example reads the resulting pickled data. ::
12341210..  pickletools.optimize() or the gzip module).
12351211
12361212
1213+  .. _pickle-cli :
1214+ 
1215+ Command-line interface
1216+ ---------------------- 
1217+ 
1218+ The :mod: `pickle ` module can be invoked as a script from the command line,
1219+ it will display contents of the pickle files. However, when the pickle file
1220+ that you want to examine comes from an untrusted source, ``-m pickletools ``
1221+ is a safer option because it does not execute pickle bytecode, see
1222+ :ref: `pickletools CLI usage  <pickletools-cli >`.
1223+ 
1224+ .. code-block :: bash 
1225+ 
1226+    python -m pickle pickle_file [pickle_file ...] 
1227+ 
1228+  The following option is accepted:
1229+ 
1230+ .. program :: pickle 
1231+ 
1232+ .. option :: pickle_file 
1233+ 
1234+    A pickle file to read or ``- `` to indicate reading from standard input.
1235+ 
1236+ 
12371237.. seealso ::
12381238
12391239   Module :mod: `copyreg `
0 commit comments