summaryrefslogtreecommitdiff
path: root/src/buildstream/_platform/platform.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildstream/_platform/platform.py')
-rw-r--r--src/buildstream/_platform/platform.py18
1 files changed, 4 insertions, 14 deletions
diff --git a/src/buildstream/_platform/platform.py b/src/buildstream/_platform/platform.py
index ebac66843..1fddbe82c 100644
--- a/src/buildstream/_platform/platform.py
+++ b/src/buildstream/_platform/platform.py
@@ -114,9 +114,7 @@ class Platform:
elif backend == "win32":
from .win32 import Win32 as PlatformImpl # pylint: disable=cyclic-import
elif backend == "fallback":
- from .fallback import (
- Fallback as PlatformImpl,
- ) # pylint: disable=cyclic-import
+ from .fallback import Fallback as PlatformImpl # pylint: disable=cyclic-import
else:
raise PlatformError("No such platform: '{}'".format(backend))
@@ -212,17 +210,11 @@ class Platform:
# (Sandbox) A sandbox
#
def create_sandbox(self, *args, **kwargs):
- raise ImplError(
- "Platform {platform} does not implement create_sandbox()".format(
- platform=type(self).__name__
- )
- )
+ raise ImplError("Platform {platform} does not implement create_sandbox()".format(platform=type(self).__name__))
def check_sandbox_config(self, config):
raise ImplError(
- "Platform {platform} does not implement check_sandbox_config()".format(
- platform=type(self).__name__
- )
+ "Platform {platform} does not implement check_sandbox_config()".format(platform=type(self).__name__)
)
def maximize_open_file_limit(self):
@@ -243,7 +235,5 @@ class Platform:
def _setup_dummy_sandbox(self):
raise ImplError(
- "Platform {platform} does not implement _setup_dummy_sandbox()".format(
- platform=type(self).__name__
- )
+ "Platform {platform} does not implement _setup_dummy_sandbox()".format(platform=type(self).__name__)
)