()
Load scraped product lists to memory
Load scraped product lists to memory
Load scraped product lists to memory
def load_autocomplete_files():
    ''' Load scraped product lists to memory '''
    with codecs.open('data/xtra.txt', 'r', encoding='utf8') as f:
        lines = f.readlines()
        f.close()
        GLOBAL_AC_LIST.extend(lines)

    with codecs.open('data/rainbow.txt', 'r', encoding='utf8') as f:
        lines = f.readlines()
        f.close()
        GLOBAL_AC_LIST.extend(lines)
def load_autocomplete_files ( ) : with codecs . open ( 'data/xtra.txt' , 'r' , encoding = 'utf8' ) as f : lines = f . readlines ( ) f . close ( ) GLOBAL_AC_LIST . extend ( lines ) with codecs . open ( 'data/rainbow.txt' , 'r' , encoding = 'utf8' ) as f : lines = f . readlines ( ) f . close ( ) GLOBAL_AC_LIST . extend ( lines )