Module: deluge
Branch: 1.3-stable
Commit: 0fcd90ee2cc6a68d9f067c2d95843414c3eee176

Author: John Garland <[email protected]>
Date:   Tue Jun  8 01:38:17 2010 +1000

Python independent version of previous commit

---

 deluge/ui/console/main.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/deluge/ui/console/main.py b/deluge/ui/console/main.py
index a4bb19f..8235ee9 100644
--- a/deluge/ui/console/main.py
+++ b/deluge/ui/console/main.py
@@ -109,7 +109,9 @@ class BaseCommand(object):
         return self.__doc__
 
     def split(self, text):
-        return shlex.split(text, posix=not deluge.common.windows_check())
+        if deluge.common.windows_check():
+            text = text.replace('\\', '\\\\')
+        return shlex.split(text)
 
     def create_parser(self):
         return OptionParser(prog = self.name,

-- 
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en.

Reply via email to