m8719-github commented on code in PR #60065:
URL: https://github.com/apache/airflow/pull/60065#discussion_r2665175763
##########
airflow-core/src/airflow/utils/code_utils.py:
##########
@@ -50,6 +51,12 @@ def get_python_source(x: Any) -> str | None:
return source_code
+def get_python_source_md5(x: Any) -> str:
+ """Get Python source MD5 hash/fingerprint."""
+ source_code = str(get_python_source(x))
+ return hashlib.md5(source_code.encode()).hexdigest()
Review Comment:
done
--
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]