(self, filename=None, ignore_discard=False, ignore_expires=False)
Load cookies from a file.
Load cookies from a file.
Load cookies from a file .
def load(self, filename=None, ignore_discard=False, ignore_expires=False):
        """Load cookies from a file."""
        if filename is None:
            if self.filename is not None: filename = self.filename
            else: raise ValueError(MISSING_FILENAME_TEXT)

        with open(filename) as f:
            self._really_load(f, filename, ignore_discard, ignore_expires)
def load ( self , filename = None , ignore_discard = False , ignore_expires = False ) : if filename is None : if self . filename is not None : filename = self . filename else : raise ValueError ( MISSING_FILENAME_TEXT ) with open ( filename ) as f : self . _really_load ( f , filename , ignore_discard , ignore_expires )