diff --git a/snapcraft/utils.py b/snapcraft/utils.py index 505d289912..d8caf721b2 100644 --- a/snapcraft/utils.py +++ b/snapcraft/utils.py @@ -458,6 +458,7 @@ def is_snapcraft_running_from_snap() -> bool: """Check if snapcraft is running from the snap.""" return os.getenv("SNAP_NAME") == "snapcraft" and os.getenv("SNAP") is not None + def _remove_custom_data_from_dict(data): prog = re.compile("^custom-data-[a-zA-Z0-9][a-zA-Z0-9_-]*$") for element in list(data.keys()): diff --git a/snapcraft_legacy/project/_project_info.py b/snapcraft_legacy/project/_project_info.py index 041e336835..ef815f774e 100644 --- a/snapcraft_legacy/project/_project_info.py +++ b/snapcraft_legacy/project/_project_info.py @@ -19,11 +19,12 @@ import snapcraft_legacy.yaml_utils.errors from snapcraft_legacy import yaml_utils -from . import _schema from snapcraft.utils import ( remove_custom_data, ) +from . import _schema + class ProjectInfo: """Information gained from the snap's snapcraft.yaml file."""