[diffoscope] 01/01: difference: makes dill import depend on Config.parallel

Juliana Oliveira jwnx-guest at moszumanska.debian.org
Thu Jan 25 17:34:59 CET 2018


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

jwnx-guest pushed a commit to branch jwnx_parallel_diffoscope
in repository diffoscope.

commit ee7befe23ece7b524b9d59ba53370b7ee73c6c4a
Author: Juliana Oliveira <juliana.orod at gmail.com>
Date:   Thu Jan 25 14:34:38 2018 -0200

    difference: makes dill import depend on Config.parallel
    
    Signed-off-by: Juliana Oliveira <juliana.orod at gmail.com>
---
 diffoscope/difference.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/diffoscope/difference.py b/diffoscope/difference.py
index 1b19b8c..adb026d 100644
--- a/diffoscope/difference.py
+++ b/diffoscope/difference.py
@@ -19,7 +19,6 @@
 
 import heapq
 import logging
-import dill
 
 from . import feeders
 from .exc import RequiredToolNotFound
@@ -254,6 +253,7 @@ class Difference(object):
         results = {}
 
         if Config.parallel:
+          import dill
           from .parallel.comparison_pool import ComparisonPool, \
                                                 CommandFailedToExecute
           pool = ComparisonPool()

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


More information about the diffoscope mailing list