Skip to content

Commit b8b1891

Browse files
authored
change: add super() call in Local Mode DataSource subclasses (#1443)
This is to address Pylint's W0231 (super-init-not-called)
1 parent fbebd80 commit b8b1891

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/sagemaker/local/data.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ def __init__(self, root_path):
122122
Args:
123123
root_path:
124124
"""
125+
super(LocalFileDataSource, self).__init__()
126+
125127
self.root_path = os.path.abspath(root_path)
126128
if not os.path.exists(self.root_path):
127129
raise RuntimeError("Invalid data source: %s does not exist." % self.root_path)
@@ -167,6 +169,7 @@ def __init__(self, bucket, prefix, sagemaker_session):
167169
desired settings
168170
to talk to S3
169171
"""
172+
super(S3DataSource, self).__init__()
170173

171174
# Create a temporary dir to store the S3 contents
172175
root_dir = sagemaker.utils.get_config_value(

0 commit comments

Comments
 (0)