Skip to content

Commit 1cb9de6

Browse files
committed
updated doc string
1 parent ecb4800 commit 1cb9de6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sagemaker/serializers.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ def __init__(self, content_type="file-path/raw-bytes"):
371371
super(DataSerializer, self).__init__(content_type=content_type)
372372

373373
def serialize(self, data):
374-
"""Serialize file of various formats to a raw bytes.
374+
"""Serialize file data to a raw bytes.
375375
376376
Args:
377377
data (object): Data to be serialized. The data can be a string,
@@ -383,7 +383,7 @@ def serialize(self, data):
383383
try:
384384
dataFile = open(data, "rb")
385385
except Exception:
386-
raise ValueError(f"{data} is not a valid file path.")
386+
raise ValueError(f"{data} is not a valid file-path.")
387387
dataFileInfo = dataFile.read()
388388
dataFile.close()
389389
return dataFileInfo

0 commit comments

Comments
 (0)