From 50e83d5c4e215a22b93333a56c9abff9c928775f Mon Sep 17 00:00:00 2001 From: RyuSA <12961775+RyuSA@users.noreply.github.com> Date: Sun, 19 May 2024 14:31:45 +0000 Subject: [PATCH] Applied yapf --- sdks/python/apache_beam/io/filesystems.py | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/sdks/python/apache_beam/io/filesystems.py b/sdks/python/apache_beam/io/filesystems.py index a4ff9997ea93..1965e5f6f31e 100644 --- a/sdks/python/apache_beam/io/filesystems.py +++ b/sdks/python/apache_beam/io/filesystems.py @@ -42,7 +42,9 @@ # optional file system packages are not installed. pass except ImportError as e: - _LOGGER.warning("Failed to import HadoopFileSystem; loading of this filesystem will be skipped.", e) + _LOGGER.warning( + "Failed to import HadoopFileSystem; loading of this filesystem will be skipped.", + e) try: from apache_beam.io.localfilesystem import LocalFileSystem @@ -50,28 +52,36 @@ pass except ImportError as e: # optional file system packages are installed but failed to load. - _LOGGER.warning("Failed to import LocalFileSystem; loading of this filesystem will be skipped.", e) + _LOGGER.warning( + "Failed to import LocalFileSystem; loading of this filesystem will be skipped.", + e) try: from apache_beam.io.gcp.gcsfilesystem import GCSFileSystem except ModuleNotFoundError: pass except ImportError as e: - _LOGGER.warning("Failed to import GCSFileSystem; loading of this filesystem will be skipped.", e) + _LOGGER.warning( + "Failed to import GCSFileSystem; loading of this filesystem will be skipped.", + e) try: from apache_beam.io.aws.s3filesystem import S3FileSystem except ModuleNotFoundError: pass except ImportError as e: - _LOGGER.warning("Failed to import S3FileSystem; loading of this filesystem will be skipped.", e) + _LOGGER.warning( + "Failed to import S3FileSystem; loading of this filesystem will be skipped.", + e) try: from apache_beam.io.azure.blobstoragefilesystem import BlobStorageFileSystem except ModuleNotFoundError: pass except ImportError as e: - _LOGGER.warning("Failed to import BlobStorageFileSystem; loading of this filesystem will be skipped.", e) + _LOGGER.warning( + "Failed to import BlobStorageFileSystem; loading of this filesystem will be skipped.", + e) # pylint: enable=wrong-import-position, unused-import