[Pkg-bazaar-commits] ./bzr/unstable r264: parse_args: option names must be ascii

Martin Pool mbp at sourcefrog.net
Fri Apr 10 07:51:35 UTC 2009


------------------------------------------------------------
revno: 264
committer: Martin Pool <mbp at sourcefrog.net>
timestamp: Fri 2005-04-15 12:57:26 +1000
message:
  parse_args: option names must be ascii
modified:
  bzrlib/commands.py
-------------- next part --------------
=== modified file 'bzrlib/commands.py'
--- a/bzrlib/commands.py	2005-04-15 02:55:00 +0000
+++ b/bzrlib/commands.py	2005-04-15 02:57:26 +0000
@@ -831,6 +831,8 @@
     while argv:
         a = argv.pop(0)
         if a[0] == '-':
+            # option names must not be unicode
+            a = str(a)
             optarg = None
             if a[1] == '-':
                 mutter("  got option %r" % a)



More information about the Pkg-bazaar-commits mailing list