You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default, the toc file is opened from sys.stdin.buffer. If a file is set with -t, stdin gets closed. pdb then tries to read from stdin to get the next command, causing the exception.
The text was updated successfully, but these errors were encountered:
Summary
When trying to debug pdftocio (or pdftocio) using pdb and reading the TOC from a file, pdb crashes with "ValueError: I/O operation on closed file".
Steps to reproduce
python -m pdb ${bindir}/pdftocio -t test.toc in.pdf
c
Cause
By default, the toc file is opened from
sys.stdin.buffer
. If a file is set with-t
, stdin gets closed. pdb then tries to read from stdin to get the next command, causing the exception.The text was updated successfully, but these errors were encountered: