Changeset 2326


Ignore:
Timestamp:
Feb 12, 2010 11:03:09 AM (9 years ago)
Author:
jwatson
Message:

Adding import of cPickle instead of pickle, if it exists.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • coopr.plugins/trunk/coopr/plugins/smanager/pyro.py

    r2281 r2326  
    1212__all__ = []
    1313
    14 import pyutilib.misc
    15 import pyutilib.component.core
    16 from coopr.opt.parallel.manager import *
    17 from coopr.opt.parallel.solver import *
    18 from coopr.opt.results import SolverResults
    19 
    20 import pickle
     14try:
     15    import cPickle as pickle
     16except ImportError:
     17    import pickle
    2118
    2219try:
     
    2623except ImportError:
    2724    using_pyro=False
    28        
     25
     26import pyutilib.misc
     27import pyutilib.component.core
     28from coopr.opt.parallel.manager import *
     29from coopr.opt.parallel.solver import *
     30from coopr.opt.results import SolverResults
    2931
    3032class SolverManager_Pyro(AsynchronousSolverManager):
Note: See TracChangeset for help on using the changeset viewer.