piptools._compat._click_compat module¶
Compatibility helpers and wrappers for working with click.
- piptools._compat._click_compat._close_intelligently(fileobj: BinaryIO) None¶
Close the file if it defines
should_closeand gives it a truthy value.This relies on click’s internal
LazyFiletype’sshould_closebehavior, and suppresses errors which may occur when closing a file.