From 0689d8b3e10e969b7fed0af9ac906222858e4fb9 Mon Sep 17 00:00:00 2001 From: Jake Hunsaker Date: Wed, 30 Mar 2022 12:51:06 -0400 Subject: [utilities] Better detect binary files with python3-magic Adds a new `file_is_binary()` method to `sos.utilities` to serve as a single point to determine if a file is binary or not, relying on the python3-magic module. Closes: #2839 Signed-off-by: Jake Hunsaker --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'requirements.txt') diff --git a/requirements.txt b/requirements.txt index 7ca2e9f1..4c387efe 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ pycodestyle>=2.4.0 -nose>=1.3.7 coverage>=4.0.3 Sphinx>=1.3.5 pexpect>=4.0.0 +python_magic>=0.4.20 -- cgit