Skip to content
Snippets Groups Projects
Commit 211038ff authored by Hugo Trentesaux's avatar Hugo Trentesaux Committed by Vincent Texier
Browse files

[fix] python3.5 backward compatibility

parent 2eee7028
No related branches found
No related tags found
2 merge requests!128Release 0.62.0,!124#130: Support reading Duniter's local json blockchain
......@@ -31,7 +31,7 @@ class JsonBlockchain:
def parsechunk(self):
"""parse a json chunk file"""
with open(
os.path.join(self.folder, f"chunk_{self.current_chunk}-250.json")
os.path.join(self.folder, "chunk_" + str(self.current_chunk) + "-250.json")
) as f:
s = f.read()
p = json.loads(s)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment