def read_fakelc(fakelcfile):
'''
This just reads a pickled fake LC.
'''
try:
with open(lcfile,'rb') as infd:
lcdict = pickle.load(infd)
except UnicodeDecodeError:
with open(lcfile,'rb') as infd:
lcdict = pickle.load(infd, encoding='latin1')
return lcdict
#######################
## UTILITY FUNCTIONS ##
#######################
评论列表
文章目录