Skip to content
This repository was archived by the owner on Dec 6, 2023. It is now read-only.

Commit 9f7a285

Browse files
committed
Fix powershell b64encode error
1 parent 7dde1a1 commit 9f7a285

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cme/helpers/powershell.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def get_ps_script(path):
1919
return os.path.join(os.path.dirname(cme.__file__), 'data', path)
2020

2121
def encode_ps_command(command):
22-
return b64encode(command.encode('UTF-16LE'))
22+
return b64encode(command.encode('UTF-16LE')).decode()
2323

2424
def is_powershell_installed():
2525
if which('powershell'):

0 commit comments

Comments
 (0)