Skip to content
GitLab
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Reproducible Builds
diffoscope
Compare revisions
2f2559b69f172eed1d7eebf47313c01809e9bd69...f13c6859800a7964f02d7ec7e8f1f57519f90924
Commits (3)
Drop unused imports.
· 28d0e77d
Chris Lamb
authored
Nov 18, 2021
28d0e77d
Use isinstance(...) over type(...) ==
· 491be46e
Chris Lamb
authored
Nov 18, 2021
491be46e
Avoid aliasing variables if we aren't going to use them.
· f13c6859
Chris Lamb
authored
Nov 18, 2021
f13c6859
Hide whitespace changes
Inline
Side-by-side
diffoscope/comparators/decompile.py
View file @
f13c6859
...
...
@@ -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
(
...
...
diffoscope/comparators/directory.py
View file @
f13c6859
...
...
@@ -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
=
[]
...
...
diffoscope/comparators/elf.py
View file @
f13c6859
...
...
@@ -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"
,
...
...
diffoscope/comparators/fit.py
View file @
f13c6859
...
...
@@ -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
):
...
...
diffoscope/comparators/python.py
View file @
f13c6859
...
...
@@ -91,7 +91,7 @@ def show_code(code, indent=""):
yield
f
"
{
indent
}
consts"
for
const
in
code
.
co_consts
:
if
typ
e
(
const
)
==
types
.
CodeType
:
if
isinstanc
e
(
const
,
types
.
CodeType
)
:
yield
from
show_code
(
const
,
f
"
{
indent
}
"
)
else
:
yield
f
"
{
indent
}{
const
!r}
"
...
...
diffoscope/main.py
View file @
f13c6859
...
...
@@ -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
...
...