[diffoscope] 02/02: utils.container: Inline specialize import; seems to cause import loop in tests otherwise...

Chris Lamb chris at chris-lamb.co.uk
Sun Jan 15 02:41:54 CET 2017


This is an automated email from the git hooks/post-receive script.

lamby pushed a commit to branch master
in repository diffoscope.

commit 5371e818a282d63832927b4a8e02ce041cb25ef9
Author: Chris Lamb <lamby at debian.org>
Date:   Sun Jan 15 12:41:13 2017 +1100

    utils.container: Inline specialize import; seems to cause import loop in tests otherwise...
    
    Gbp-Dch: ignore
---
 diffoscope/comparators/utils/container.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/diffoscope/comparators/utils/container.py b/diffoscope/comparators/utils/container.py
index db56f23..3cd6650 100644
--- a/diffoscope/comparators/utils/container.py
+++ b/diffoscope/comparators/utils/container.py
@@ -28,7 +28,6 @@ from diffoscope.progress import Progress
 from ..missing_file import MissingFile
 
 from .fuzzy import perform_fuzzy_matching
-from .specialize import specialize
 
 NO_COMMENT = None
 
@@ -57,6 +56,7 @@ class Container(object, metaclass=abc.ABCMeta):
 
     def lookup_file(self, *names):
         """Try to fetch a specific file by digging in containers."""
+        from .specialize import specialize
         name, remainings = names[0], names[1:]
         try:
             file = self.get_member(name)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git


More information about the diffoscope mailing list