From 147d965f12cec99f41c2b7986dc1fd569d35f957 Mon Sep 17 00:00:00 2001 From: Lauri Nurmi Date: Sun, 25 Jun 2017 13:42:03 +0300 Subject: [PATCH] Fix gen_iface.py to be compatible with python <2.7 In python <2.7, a dictionary without values is invalid syntax. --- src/stc/gen_iface.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stc/gen_iface.py b/src/stc/gen_iface.py index 1cc18062fe..cbba253924 100755 --- a/src/stc/gen_iface.py +++ b/src/stc/gen_iface.py @@ -72,14 +72,14 @@ FUNC_FOR_CMD = 1 GENERATE_PROVISIONAL_ITEMS = 0 # No wxSTC value will be generated for the following Scintilla values. -notMappedSciValues = { +notMappedSciValues = set([ 'SC_TECHNOLOGY_DIRECTWRITERETAIN', 'SC_TECHNOLOGY_DIRECTWRITEDC', 'INDIC0_MASK', 'INDIC1_MASK', 'INDIC2_MASK', 'INDICS_MASK' -} +]) # Map some generic typenames to wx types, using return value syntax retTypeMap = {