We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ecb4800 commit 1cb9de6Copy full SHA for 1cb9de6
src/sagemaker/serializers.py
@@ -371,7 +371,7 @@ def __init__(self, content_type="file-path/raw-bytes"):
371
super(DataSerializer, self).__init__(content_type=content_type)
372
373
def serialize(self, data):
374
- """Serialize file of various formats to a raw bytes.
+ """Serialize file data to a raw bytes.
375
376
Args:
377
data (object): Data to be serialized. The data can be a string,
@@ -383,7 +383,7 @@ def serialize(self, data):
383
try:
384
dataFile = open(data, "rb")
385
except Exception:
386
- raise ValueError(f"{data} is not a valid file path.")
+ raise ValueError(f"{data} is not a valid file-path.")
387
dataFileInfo = dataFile.read()
388
dataFile.close()
389
return dataFileInfo
0 commit comments