def load (self, infile):
        """
        Loads internal cache from infile.

        infile may be a filename or an open file-like object.
        """
        try:
            if isinstance(infile, str):
                infile = open(infile)

            self.cache = pickle.load(infile)
        except __HOLE__:
            self.cache = {}
dataset/ETHPy150Open crypt3lx2k/Tripcode-Dictionary-Tools/tdt/web/WebCache.py/WebCache.load