Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion OleAutomation.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def putFile (self, localFile, remoteFile):
'''
logging.info("Copying the local file {0} to {1}".format(localFile, remoteFile))
data = getBinaryDataFromFile(localFile)
dataEncoded = "0x"+data.encode('hex')
dataEncoded = "0x" + data.hex()
status = self.writeFileBinary(remoteFile, dataEncoded)
if isinstance(status,Exception):
logging.info("Impossible to create the remote file {0}".format(remoteFile))
Expand Down