mirror of
https://github.com/matrix-org/pantalaimon.git
synced 2025-01-04 12:20:50 -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 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, posix=False))
|
||||
except ParseError:
|
||||
continue
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user