/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: Gordon Tyler
  • Date: 2009-12-22 19:13:59 UTC
  • mto: (5037.3.1 integration)
  • mto: This revision was merged to the branch mainline in revision 5046.
  • Revision ID: gordon@doxxx.net-20091222191359-cbnne2l1bjbja82p
Changed shlex_split_unicode to prevent wildcard expansion in the win32 codepath.

Show diffs side-by-side

added added

removed removed

Lines of Context:
870
870
 
871
871
def shlex_split_unicode(unsplit):
872
872
    if sys.platform == "win32":
873
 
        import bzrlib.win32utils as win32utils
874
 
        return win32utils.command_line_to_argv(unsplit)
 
873
        from bzrlib.win32utils import command_line_to_argv
 
874
        return command_line_to_argv(unsplit, wildcard_expansion=False)
875
875
    else:
876
876
        import shlex
877
877
        return [u.decode('utf-8') for u in shlex.split(unsplit.encode('utf-8'))]