MCPcopy
hub / github.com/ArchiveBox/ArchiveBox / wget_supports_compression

Function wget_supports_compression

archivebox/config.py:928–937  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

926 return None
927
928def wget_supports_compression(config):
929 try:
930 cmd = [
931 config['WGET_BINARY'],
932 "--compression=auto",
933 "--help",
934 ]
935 return not run(cmd, stdout=DEVNULL, stderr=DEVNULL).returncode
936 except (FileNotFoundError, OSError):
937 return False
938
939def get_code_locations(config: ConfigDict) -> SimpleConfigValueDict:
940 return {

Callers 1

config.pyFile · 0.85

Calls 1

runFunction · 0.70

Tested by

no test coverage detected