Fix typo
PiperOrigin-RevId: 542660548
This commit is contained in:
parent
2f5fc16a38
commit
4e862995ba
|
@ -737,7 +737,7 @@ class MetadataDisplayer(object):
|
||||||
metadata_buffer = get_metadata_buffer(model_buffer)
|
metadata_buffer = get_metadata_buffer(model_buffer)
|
||||||
if not metadata_buffer:
|
if not metadata_buffer:
|
||||||
raise ValueError("The model does not have metadata.")
|
raise ValueError("The model does not have metadata.")
|
||||||
associated_file_list = cls._parse_packed_associted_file_list(model_buffer)
|
associated_file_list = cls._parse_packed_associated_file_list(model_buffer)
|
||||||
return cls(model_buffer, metadata_buffer, associated_file_list)
|
return cls(model_buffer, metadata_buffer, associated_file_list)
|
||||||
|
|
||||||
def get_associated_file_buffer(self, filename):
|
def get_associated_file_buffer(self, filename):
|
||||||
|
@ -775,8 +775,8 @@ class MetadataDisplayer(object):
|
||||||
"""
|
"""
|
||||||
return copy.deepcopy(self._associated_file_list)
|
return copy.deepcopy(self._associated_file_list)
|
||||||
|
|
||||||
@staticmethod
|
@classmethod
|
||||||
def _parse_packed_associted_file_list(model_buf):
|
def _parse_packed_associated_file_list(cls, model_buf):
|
||||||
"""Gets a list of associated files packed to the model file.
|
"""Gets a list of associated files packed to the model file.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user