Rev 5249: (lifeless) Fix deprecation warning in bash_completion plugin. (Andrew in file:///home/pqm/archives/thelove/bzr/%2Btrunk/

Canonical.com Patch Queue Manager pqm at pqm.ubuntu.com
Fri May 21 13:20:19 BST 2010


At file:///home/pqm/archives/thelove/bzr/%2Btrunk/

------------------------------------------------------------
revno: 5249 [merge]
revision-id: pqm at pqm.ubuntu.com-20100521122017-09a0ae00zc2lqou4
parent: pqm at pqm.ubuntu.com-20100521110138-pyuhper87ny71bpz
parent: andrew.bennetts at canonical.com-20100521061755-vyarcez7966m00gp
committer: Canonical.com Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Fri 2010-05-21 13:20:17 +0100
message:
  (lifeless) Fix deprecation warning in bash_completion plugin. (Andrew
   Bennetts)
modified:
  bzrlib/plugins/bash_completion/bashcomp.py bzr-20090930204816-30t9rmd0lpi17536-1
=== modified file 'bzrlib/plugins/bash_completion/bashcomp.py'
--- a/bzrlib/plugins/bash_completion/bashcomp.py	2010-05-05 08:08:48 +0000
+++ b/bzrlib/plugins/bash_completion/bashcomp.py	2010-05-21 06:17:55 +0000
@@ -17,6 +17,7 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 
 from bzrlib import (
+    cmdline,
     commands,
     config,
     help_topics,
@@ -293,7 +294,7 @@
 
     def aliases(self):
         for alias, expansion in config.GlobalConfig().get_aliases().iteritems():
-            for token in commands.shlex_split_unicode(expansion):
+            for token in cmdline.split(expansion):
                 if not token.startswith("-"):
                     self.user_aliases.setdefault(token, set()).add(alias)
                     break




More information about the bazaar-commits mailing list