Need to just cast ordinarily here; otherwise we miss the subclass method.

pull/1451/head
jMyles 2019-12-23 14:33:28 -08:00
parent 05ca31b14b
commit ecff39bbdc
1 changed files with 1 additions and 1 deletions

View File

@ -459,7 +459,7 @@ class LocalFileBasedNodeStorage(NodeStorage):
def __write_metadata(self, filepath: str, node): def __write_metadata(self, filepath: str, node):
os.makedirs(os.path.dirname(filepath), exist_ok=True) os.makedirs(os.path.dirname(filepath), exist_ok=True)
with open(filepath, "wb") as f: with open(filepath, "wb") as f:
f.write(self.serializer(self.character_class.__bytes__(node))) f.write(self.serializer(bytes(node)))
self.log.info("Wrote new node metadata to filesystem {}".format(filepath)) self.log.info("Wrote new node metadata to filesystem {}".format(filepath))
return filepath return filepath