Commits (3)
......@@ -18,7 +18,6 @@
# along with diffoscope. If not, see <https://www.gnu.org/licenses/>.
import re
import sys
import abc
import logging
......@@ -26,7 +25,6 @@ from .utils.file import File
from .utils.operation import Operation
from .utils.container import Container
from diffoscope.config import Config
from diffoscope.difference import Difference
from diffoscope.excludes import operation_excluded
from diffoscope.tools import (
......
......@@ -160,7 +160,7 @@ def compare_meta(path1, path2):
try:
stat1 = os.lstat(path1)
stat2 = os.lstat(path2)
except Exception as e:
except Exception:
return []
differences = []
......
......@@ -35,7 +35,6 @@ from .deb import DebFile, get_build_id_map
from .decompile import DecompilableContainer
from .utils.file import File
from .utils.command import Command, our_check_output
from .utils.container import Container
DEBUG_SECTION_GROUPS = (
"rawline",
......
......@@ -81,7 +81,7 @@ class FitContainer(Archive):
dest_path,
)
output = command.our_check_output(cmd)
command.our_check_output(cmd)
# Cannot rely on dumpimage returning a non-zero exit code on failure.
if not os.path.exists(dest_path):
......
......@@ -91,7 +91,7 @@ def show_code(code, indent=""):
yield f"{indent}consts"
for const in code.co_consts:
if type(const) == types.CodeType:
if isinstance(const, types.CodeType):
yield from show_code(const, f"{indent} ")
else:
yield f" {indent}{const!r}"
......
......@@ -32,12 +32,10 @@ from . import VERSION
from .path import set_path
from .tools import (
get_tools,
tool_check_installed,
tool_prepend_prefix,
python_module_missing,
tool_required,
OS_NAMES,
get_current_os,
)
from .config import Config
from .environ import normalize_environment
......