Fix for windows shell parsing in our test suite

Co-authored-by: Micah Jerome Ellison <micah.jerome.ellison@gmail.com>
This commit is contained in:
Jonathan Wren 2020-05-06 18:04:50 -07:00
parent 83547ac094
commit 0c927f8f96

View file

@ -45,9 +45,7 @@ keyring.set_keyring(TestKeyring())
def ushlex(command): def ushlex(command):
if sys.version_info[0] == 3: return shlex.split(command, posix="win32" not in sys.platform)
return shlex.split(command)
return map(lambda s: s.decode("UTF8"), shlex.split(command.encode("utf8")))
def read_journal(journal_name="default"): def read_journal(journal_name="default"):