commit | a612e633d48f472bc6cc1c7c1696d1fd58d8e0e6 | [log] [tgz] |
---|---|---|
author | Pavel Sedlák <psedlak@redhat.com> | Thu Jul 10 23:49:48 2014 +0200 |
committer | Pavel Sedlák <psedlak@redhat.com> | Thu Jul 10 23:49:50 2014 +0200 |
tree | 582760c179ddb9e3adcdb7c89cbcd82673f43ef5 | |
parent | 2663a5bcd9132234acdc7063c5d14e7411ded063 [diff] |
Always pass str to shlex.split for py26 compat On python 2.6 shlex.split cannot handle unicode, which can lead to TypeError exception. Details can be seen in http://bugs.python.org/issue6988 and http://bugs.python.org/issue1548891 As best solution it seems to decode *cmd* to utf-8 str before passing to shlex.split(). Change-Id: If56a6f16ab712691b26035d0cd3d7d70260a64c6