mirror of
https://github.com/matrix-org/pantalaimon.git
synced 2025-07-20 13:38:46 -04:00
Merge pull request #185 from NevroHelios/master
Issue #138: Using shlex.split instead str.split
This commit is contained in:
commit
21fb28d090
1 changed files with 2 additions and 1 deletions
|
@ -20,6 +20,7 @@ import sys
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
from itertools import zip_longest
|
from itertools import zip_longest
|
||||||
from typing import List
|
from typing import List
|
||||||
|
from shlex import split
|
||||||
|
|
||||||
import attr
|
import attr
|
||||||
import click
|
import click
|
||||||
|
@ -589,7 +590,7 @@ class PanCtl:
|
||||||
parser = PanctlParser(self.commands)
|
parser = PanctlParser(self.commands)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
args = parser.parse_args(result.split())
|
args = parser.parse_args(split(result, posix=False))
|
||||||
except ParseError:
|
except ParseError:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue