diff options
author | Chris Packham <judge.packham@gmail.com> | 2016-09-08 20:34:34 +1200 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-09-09 23:01:23 +1000 |
commit | a50b26e4b00ed094aa1ac74eac2fc2d8eb9ea1ed (patch) | |
tree | b6fb704039f5d66a3040cea435bdca58a62bfee4 /tests/basics/string_replace.py | |
parent | b236b1974bf7da5ee833e4752d81103a348a7421 (diff) | |
download | micropython-a50b26e4b00ed094aa1ac74eac2fc2d8eb9ea1ed.tar.gz micropython-a50b26e4b00ed094aa1ac74eac2fc2d8eb9ea1ed.zip |
py/makeqstrdefs.py: Use python 2.6 syntax for set creation.
py/makeqstrdefs.py declares that it works with python 2.6 however the
syntax used to initialise of a set with values was only added in python
2.7. This leads to build failures when the host system doesn't have
python 2.7 or newer.
Instead of using the new syntax pass a list of initial values through
set() to achieve the same result. This should work for python versions
from at least 2.6 onwards.
Helped-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Chris Packham <judge.packham@gmail.com>
Diffstat (limited to 'tests/basics/string_replace.py')
0 files changed, 0 insertions, 0 deletions