Don't use shlex for splitting anymore
This commit is contained in:
parent
3ad4b447b4
commit
4421862b3e
18
TODO
18
TODO
@ -3,24 +3,6 @@ Bugs
|
||||
|
||||
keybind doesn't work properly because it only wants 1 argument for cmd
|
||||
dump_userconfig dumps everything for ValueList sections
|
||||
using " in command bar causes exception with shutil commands
|
||||
Traceback (most recent call last):
|
||||
File ".\qutebrowser\widgets\completion.py", line 244, in on_cmd_text_changed
|
||||
parts = split_cmdline(text)
|
||||
File ".\qutebrowser\commands\parsers.py", line 230, in split_cmdline
|
||||
parts = parser.parse(text)
|
||||
File ".\qutebrowser\commands\parsers.py", line 152, in parse
|
||||
args = shlex.split(parts[1])
|
||||
File "C:\python33\lib\shlex.py", line 276, in split
|
||||
return list(lex)
|
||||
File "C:\python33\lib\shlex.py", line 266, in __next__
|
||||
token = self.get_token()
|
||||
File "C:\python33\lib\shlex.py", line 93, in get_token
|
||||
raw = self.read_token()
|
||||
File "C:\python33\lib\shlex.py", line 169, in read_token
|
||||
raise ValueError("No closing quotation")
|
||||
ValueError: No closing quotation
|
||||
|
||||
All kind of FIXMEs
|
||||
Weird font rendering
|
||||
https://bugreports.qt-project.org/browse/QTBUG-20973
|
||||
|
@ -17,8 +17,6 @@
|
||||
|
||||
"""Module containing commandline parsers ( SearchParser and CommandParser)."""
|
||||
|
||||
import shlex
|
||||
|
||||
from PyQt5.QtCore import pyqtSlot, pyqtSignal, QObject
|
||||
from PyQt5.QtWebKitWidgets import QWebPage
|
||||
|
||||
@ -149,7 +147,7 @@ class CommandParser:
|
||||
if len(parts) == 1:
|
||||
args = []
|
||||
elif cmd.split_args:
|
||||
args = shlex.split(parts[1])
|
||||
args = parts[1].split()
|
||||
else:
|
||||
args = [parts[1]]
|
||||
self._cmd = cmd
|
||||
|
Loading…
Reference in New Issue
Block a user