mirror of
https://github.com/matrix-org/pantalaimon.git
synced 2025-01-07 13:48:05 -05:00
Merge pull request #185 from NevroHelios/master
Issue #138: Using shlex.split instead str.split
This commit is contained in:
commit
21fb28d090
@ -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…
Reference in New Issue
Block a user