[mirrorbrain-commits] r7776 - /trunk/mirrordoctor/mb/testmirror.py

From: <poeml_at_mirrorbrain.org>
Date: Thu, 27 Aug 2009 18:37:36 -0000
Author: poeml
Date: Thu Aug 27 20:37:34 2009
New Revision: 7776

URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain?rev=7776&view=rev
Log:
mb scan/mb file ls --probe:
- fix the lookup whether the "multiprocessing" or "processing" module exist: it
  could print a false warning that none of them was installed.

Modified:
    trunk/mirrordoctor/mb/testmirror.py

Modified: trunk/mirrordoctor/mb/testmirror.py
URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain/trunk/mirrordoctor/mb/testmirror.py?rev=7776&r1=7775&r2=7776&view=diff
==============================================================================
--- trunk/mirrordoctor/mb/testmirror.py (original)
+++ trunk/mirrordoctor/mb/testmirror.py Thu Aug 27 20:37:34 2009
@@ -212,9 +212,10 @@
         from processing import Pool
         mp_mod = 'processing'
     except:
-        if len(probelist) > 8:
-            print '>>> No multiprocessing module was found installed. For parallelizing'
-            print '>>> probing, install the "processing" or "multiprocessing" Python module.'
+        pass
+    if len(probelist) > 8 and not mp_mod:
+        print '>>> No multiprocessing module was found installed. For parallelizing'
+        print '>>> probing, install the "processing" or "multiprocessing" Python module.'
 
 
     if mp_mod in ['processing', 'multiprocessing']:




_______________________________________________
mirrorbrain-commits mailing list
Archive: http://mirrorbrain.org/archive/mirrorbrain-commits/

Note: To remove yourself from this list, send a mail with the content
 	unsubscribe
to the address mirrorbrain-commits-request_at_mirrorbrain.org
Received on Thu Aug 27 2009 - 18:37:37 GMT

This archive was generated by hypermail 2.2.0 : Thu Aug 27 2009 - 18:45:07 GMT