Skip to content

Commit

Permalink
Applied yapf
Browse files Browse the repository at this point in the history
  • Loading branch information
RyuSA committed May 19, 2024
1 parent c467077 commit 50e83d5
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions sdks/python/apache_beam/io/filesystems.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,36 +42,46 @@
# 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
except ModuleNotFoundError:
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

Expand Down

0 comments on commit 50e83d5

Please sign in to comment.