Changeset 2327


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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • coopr.misc/trunk/scripts/pyro_mip_server

    r2282 r2327  
    1515
    1616import os
     17import os.path
    1718import sys
    1819from os.path import abspath, dirname
     
    2021sys.path.append(".")
    2122
     23try:
     24   import cPickle as pickle
     25except ImportError:
     26   import pickle
     27
     28import pyutilib.services
     29import pyutilib.pyro
     30
    2231import coopr.opt
    23 import pyutilib.pyro
    24 import sys
    25 import pyutilib.services
    26 import pickle
    27 import os.path
    2832
    2933class CooprMIPWorker(pyutilib.pyro.TaskWorker):
Note: See TracChangeset for help on using the changeset viewer.