mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-21 13:38:31 +02:00
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:
parent
83547ac094
commit
0c927f8f96
1 changed files with 1 additions and 3 deletions
|
@ -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"):
|
||||||
|
|
Loading…
Add table
Reference in a new issue