]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
toaster: use re.sub() instead of translate()
authorEd Bartosh <ed.bartosh@linux.intel.com>
Tue, 10 May 2016 14:06:54 +0000 (17:06 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 1 Jun 2016 14:28:23 +0000 (15:28 +0100)
commit7cc3a41139abc5b8d1eef4376fb19aba3910ce0d
tree69b1bf9ca906ed3dc7825aaf17a5593fb07ba292
parentd41eb6d6c061cb35ec1ecd899f856876f9077167
toaster: use re.sub() instead of translate()

translate has different set of parameters in python 3 and
can't be used the way it's used in toaster api module.

Replacing it with re.sub() should make the code work in
both python 2  and python 3.

[YOCTO #9584]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/toaster/toastergui/api.py