Skip to content

combine_cmds: shlex.split() doesn't get along well with unicode #431

@irskep

Description

@irskep

Just uncovered this while doing some recreational opt dict refactoring:

>>> shlex.split(u'py3k')
['p\x00y\x003\x00k\x00']
>>> shlex.split('py3k')
['py3k']

This is 'fixed' by changing combine_cmds to use shlex.split(str(cmd)).

This happens if you use Python 2.7 JSON but not simplejson!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions