Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions airflow-core/src/airflow/utils/yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ def __getattr__(name):
# Delegate anything else to the yaml module
import yaml

if name == "FullLoader":
# Try to use CFullLoader by default
getattr(yaml, "CFullLoader", yaml.FullLoader)

# FullLoader stays pyyaml's on purpose: CFullLoader does not see add_constructor
# registrations, so custom tags would raise ConstructorError instead of resolving.
return getattr(yaml, name)
6 changes: 2 additions & 4 deletions airflow-ctl/src/airflowctl/ctl/utils/yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@ def __getattr__(name):
# Delegate anything else to the yaml module
import yaml

if name == "FullLoader":
# Try to use CFullLoader by default
getattr(yaml, "CFullLoader", yaml.FullLoader)

# FullLoader stays pyyaml's on purpose: CFullLoader does not see add_constructor
# registrations, so custom tags would raise ConstructorError instead of resolving.
return getattr(yaml, name)
6 changes: 2 additions & 4 deletions task-sdk/src/airflow/sdk/yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ def __getattr__(name):
# Delegate anything else to the yaml module
import yaml

if name == "FullLoader":
# Try to use CFullLoader by default
getattr(yaml, "CFullLoader", yaml.FullLoader)

# FullLoader stays pyyaml's on purpose: CFullLoader does not see add_constructor
# registrations, so custom tags would raise ConstructorError instead of resolving.
return getattr(yaml, name)