decodebytes, not decodestring
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Mon, 9 Nov 2020 14:41:17 +0000 (15:41 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Mon, 9 Nov 2020 14:41:17 +0000 (15:41 +0100)
system/TestNode.py

index 355225f..686a38d 100644 (file)
@@ -182,9 +182,9 @@ class TestNode:
             print("Dry_run: skipped writing of iso image")
             return True
         else:
-            # with python3 we need to call decodestring here
+            # with python3 we need to call decodebytes here
             with open(filename,'wb') as storage:
-                storage.write(base64.decodestring(bencoded))
+                storage.write(base64.decodebytes(bencoded))
             return True
 
     def nodestate_reinstall(self):