def _determinePickleModule():
    """
    Determine which 'pickle' API module to use.
    """
    try:
        import cPickle
        return cPickle
    except ImportError:
        import pickle
        return pickle

    Determine which 'pickle' API module to use.
    
stackoverflow/venv/lib/python3.6/site-packages/twisted/plugin.py