Skip to content

Commit 40a3265

Browse files
committed
Fix pickle parser
1 parent 3b8efae commit 40a3265

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Doc/library/pickle.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ is a safer option because it does not execute pickle bytecode, see
524524

525525
.. code-block:: bash
526526
527-
python -m pickle pickle_file
527+
python -m pickle pickle_file [pickle_file ...]
528528
529529
The following option is accepted:
530530

Lib/pickle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1913,7 +1913,7 @@ def _loads(s, /, *, fix_imports=True, encoding="ASCII", errors="strict",
19131913
description='display contents of the pickle files')
19141914
parser.add_argument(
19151915
'pickle_file',
1916-
nargs='*', help='the pickle file')
1916+
nargs='+', help='the pickle file')
19171917
args = parser.parse_args()
19181918
if not args.pickle_file:
19191919
parser.print_help()

0 commit comments

Comments
 (0)