PyFunceble/database.py
def _retrieve(self):
        """
        Retrieve the data from the database.
        """

        if self._authorization() and "whois_db" not in PyFunceble.INTERN:
            # The usage of the whois database is activated.

            if PyFunceble.path.isfile(self.whois_db_path):
                # The database file exist.

                # We merge our current database into already initiated one.
                PyFunceble.INTERN["whois_db"] = Dict().from_json(
                    File(self.whois_db_path).read()
                )
            else:
                # The database file does not exist.

                # We initiate an empty database.
                PyFunceble.INTERN["whois_db"] = {}
def _retrieve(self):
        if self._authorization() and "whois_db" not in PyFunceble.INTERN:
            # The usage of the whois database is activated.

            if PyFunceble.path.isfile(self.whois_db_path):
                # The database file exist.

                # We merge our current database into already initiated one.
                PyFunceble.INTERN["whois_db"] = Dict().from_json(
                    File(self.whois_db_path).read()
                )
            else:
                # The database file does not exist.

                # We initiate an empty database.
                PyFunceble.INTERN["whois_db"] = {}
def _retrieve ( self ) : if self . _authorization ( ) and "whois_db" not in PyFunceble . INTERN : # The usage of the whois database is activated. if PyFunceble . path . isfile ( self . whois_db_path ) : # The database file exist. # We merge our current database into already initiated one. PyFunceble . INTERN [ "whois_db" ] = Dict ( ) . from_json ( File ( self . whois_db_path ) . read ( ) ) else : # The database file does not exist. # We initiate an empty database. PyFunceble . INTERN [ "whois_db" ] = { }
Retrieve the data from the database.
Retrieve the data from the database .