Skip to content

Commit

Permalink
Close tty file when dne querying terminal info
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Jul 28, 2022
1 parent 8827a6c commit 277980e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pudb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def _get_debugger(**kwargs):
kwargs.setdefault("stdin", tty_file)
kwargs.setdefault("stdout", tty_file)
kwargs.setdefault("term_size", term_size)
tty_file.close()

from pudb.debugger import Debugger
dbg = Debugger(**kwargs)
Expand Down

0 comments on commit 277980e

Please sign in to comment.