/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: 2010-01-14 04:56:20 UTC
  • mto: (5037.3.1 integration)
  • mto: This revision was merged to the branch mainline in revision 5046.
  • Revision ID: gordon@doxxx.net-20100114045620-lhl4en5s8jityyt8
Added optional single quote support to UnicodeShlex and thus command_line_to_argv (defaults to disabled).

- Fixed unnecessary win32 platform checks in tests.
- Added extra tests for single quote support in UnicodeShlex.
- Changed commands.shlex_split_unicode to allow single quotes on win32 for better cross-platform compatibility.

Show diffs side-by-side

added added

removed removed

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