From 88c72e6dc32f0b057a0c365e485d881a434b2e20 Mon Sep 17 00:00:00 2001 From: Mike Hiretsky Date: Tue, 29 Mar 2011 16:55:20 +0400 Subject: [PATCH] Fix magic. --- pym/cl_utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pym/cl_utils.py b/pym/cl_utils.py index 4532cae..9ba27da 100644 --- a/pym/cl_utils.py +++ b/pym/cl_utils.py @@ -30,10 +30,10 @@ import getpass from types import StringType try: - from magic2 import open as type_file, MAGIC_NONE as MAGIC_NONE + from magic import open as type_file, MAGIC_NONE as MAGIC_NONE except ImportError: try: - from magic2 import open as type_file, NONE as MAGIC_NONE + from magic import open as type_file, NONE as MAGIC_NONE except: type_file = None MAGIC_NONE = None @@ -97,7 +97,7 @@ class proxy_type_file: if processFile.success(): return processFile.read().rstrip() else: - processFile = process("file","-b",filename) + processFile = process("file","-bz",filename) if processFile.success(): return processFile.read().rstrip() return None