<s> import codecs <EOL> import json <EOL> try : <EOL> import cPickle as pickle <EOL> except ImportError : <EOL> import pickle <EOL> from utils . logger import get_logger <EOL> logger = get_logger ( ) <EOL> def get_wiki_store ( path_to_file ) : <EOL> """<STR_LIT>""" <EOL> logger . info ( "<STR_LIT>" , path_to_file ) <EOL> in_file = codecs . open ( path_to_file ) <EOL> if path_to_file . endswith ( "<STR_LIT>" ) : <EOL> return pickle . load ( in_file ) <EOL> elif path_to_file . endswith ( "<STR_LIT>" ) : <EOL> return json . load ( in_file ) </s>
