diff --git a/deluge/ui/console/main.py b/deluge/ui/console/main.py index 01db19213..9aa5db10d 100644 --- a/deluge/ui/console/main.py +++ b/deluge/ui/console/main.py @@ -38,7 +38,7 @@ import os import sys import logging import optparse -import shlex +import re import locale from twisted.internet import defer, reactor @@ -163,7 +163,7 @@ class BaseCommand(object): def split(self, text): if deluge.common.windows_check(): text = text.replace('\\', '\\\\') - return shlex.split(text) + return re.split(r"(?