uranusjr commented on code in PR #30367:
URL: https://github.com/apache/airflow/pull/30367#discussion_r1166054484


##########
airflow/operators/python.py:
##########
@@ -695,7 +695,7 @@ def _get_airflow_version_from_target_env(self) -> str | 
None:
             result = subprocess.check_output(
                 [self.python, "-c", "from airflow import __version__; 
print(__version__)"],
                 text=True,
-                env={**os.environ, "_AIRFLOW__AS_LIBRARY": "true"},
+                env={**os.environ, "_AIRFLOW__AS_LIBRARY": "true"},  # 
Required to avoid `result` polluted by airflow init logs.

Review Comment:
   ```suggestion
                   env={**os.environ, "_AIRFLOW__AS_LIBRARY": "true"},  # 
Required to avoid Airflow init logs polluting the output.
   ```



-- 
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]

Reply via email to