mirror of
https://github.com/matrix-org/pantalaimon.git
synced 2025-04-18 14:56:05 -04:00
Using shlex.split instead str.split
This commit is contained in:
parent
1af0a04282
commit
29d18653dc
@ -20,6 +20,7 @@ import sys
|
||||
from collections import defaultdict
|
||||
from itertools import zip_longest
|
||||
from typing import List
|
||||
from shlex import split
|
||||
|
||||
import attr
|
||||
import click
|
||||
@ -589,7 +590,7 @@ class PanCtl:
|
||||
parser = PanctlParser(self.commands)
|
||||
|
||||
try:
|
||||
args = parser.parse_args(result.split())
|
||||
args = parser.parse_args(split(result))
|
||||
except ParseError:
|
||||
continue
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user