<s> try : <EOL> import cPickle as pickle <EOL> except ImportError : <EOL> import pickle <EOL> import gzip <EOL> from . base import Importer <EOL> class PickleImporter ( Importer ) : <EOL> def build ( self ) : <EOL> with open ( self . filepath , '<STR_LIT:rb>' ) as f : <EOL> x = pickle . load ( f ) <EOL> return x <EOL> class GZipPickleImporter ( Importer ) : <EOL> def build ( self ) : <EOL> with gzip . open ( self . filepath , '<STR_LIT:rb>' ) as f : <EOL> x = pickle . load ( f ) <EOL> return x </s>
