Skip to content
Snippets Groups Projects
Commit a50b26e4 authored by Chris Packham's avatar Chris Packham Committed by Damien George
Browse files

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: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: default avatarChris Packham <judge.packham@gmail.com>
parent b236b197
No related branches found
No related tags found
No related merge requests found
...@@ -11,7 +11,7 @@ import os ...@@ -11,7 +11,7 @@ import os
# Blacklist of qstrings that are specially handled in further # Blacklist of qstrings that are specially handled in further
# processing and should be ignored # processing and should be ignored
QSTRING_BLACK_LIST = {'NULL', 'number_of', } QSTRING_BLACK_LIST = set(['NULL', 'number_of'])
def write_out(fname, output): def write_out(fname, output):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment