Added changes suggested in the PR review

This commit is contained in:
Nicolas Beltran 2020-07-14 16:29:26 -05:00 committed by Jakub Roztocil
parent 61e7cd786e
commit 6421c145d9
2 changed files with 1 additions and 2 deletions

View File

@ -11,7 +11,7 @@ This project adheres to `Semantic Versioning <https://semver.org/>`_.
* Added support for combining cookies specified on the CLI and in a session file (`#932`_).
* Added out of the box SOCKS support with no extra installation (`#904`_).
* Removed Tox testing entirely (`#943`_).
* Added a -quiet flag to enforce silent behaviour.
* Added a ``--quiet`` flag to enforce silent behaviour.
`2.2.0`_ (2020-06-18)

View File

@ -165,7 +165,6 @@ class HTTPieArgumentParser(argparse.ArgumentParser):
self.env.stdout_isatty = False
if self.args.quiet:
self.env.devnull = open(DEVNULL_PATH, 'w')
self.env.stdout = self.env.devnull
self.env.stderr = self.env.devnull