git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
for python3, GetBootMedium needs to open image file as binary
[plcapi.git]
/
PLC
/
Methods
/
GetBootMedium.py
diff --git
a/PLC/Methods/GetBootMedium.py
b/PLC/Methods/GetBootMedium.py
index
d9fc671
..
9a4b3b8
100644
(file)
--- a/
PLC/Methods/GetBootMedium.py
+++ b/
PLC/Methods/GetBootMedium.py
@@
-602,7
+602,7
@@
class GetBootMedium(Method):
self.cleantrash()
return filename
else:
- with open(node_image) as feed:
+ with open(node_image
, "rb"
) as feed:
result = feed.read()
self.trash.append(node_image)
self.cleantrash()