shyft-mike commented on code in PR #28846:
URL: https://github.com/apache/airflow/pull/28846#discussion_r1082843374
##########
airflow/models/serialized_dag.py:
##########
@@ -102,7 +102,7 @@ def __init__(self, dag: DAG, processor_subdir: str | None =
None):
dag_data = SerializedDAG.to_dict(dag)
dag_data_json = json.dumps(dag_data, sort_keys=True).encode("utf-8")
- self.dag_hash = hashlib.md5(dag_data_json).hexdigest()
+ self.dag_hash = hashlib.new("md5", data=dag_data_json,
usedforsecurity=False).hexdigest()
Review Comment:
Ah okay. I went with "new" since it used kwargs, so passing usedforsecurity
would either work or just get ignored. But I see the precommit linting fails on
that being unexpected.
Are there any examples currently of where it makes decisions based on the
python version?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]