def __import_vars(self, env_file):
        with open(env_file, "r") as f:
            for line in f:
                try:
                    key, val = line.strip().split('=', 1)
                    key = key.lstrip('export ')
                except __HOLE__:  # Take care of blank or comment lines
                    pass
                else:
                    if not callable(val):
                        if self.verbose_mode:
                            if key in self.app.config:
                                print(
                                    " * Overwriting an existing config var:"
                                    " {0}".format(key))
                            else:
                                print(
                                    " * Setting an entirely new config var:"
                                    " {0}".format(key))
                        self.app.config[key] = re.sub(
                            r"\A[\"']|[\"']\Z", "", val)
dataset/ETHPy150Open grauwoelfchen/flask-dotenv/flask_dotenv.py/DotEnv.__import_vars