Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _prepare_env(self):
env = {
"B2LUIGI_TASK": utils.encode_value(self.__class__),
"B2LUIGI_EXECUTION": "1"
}
for key, parameter in self.get_params():
value = getattr(self, key)
env[f"{utils.PREFIX}{key}"] = utils.encode_value(value)
return env
def _prepare_env(self):
env = {
"B2LUIGI_TASK": utils.encode_value(self.__class__),
"B2LUIGI_EXECUTION": "1"
}
for key, parameter in self.get_params():
value = getattr(self, key)
env[f"{utils.PREFIX}{key}"] = utils.encode_value(value)
return env