From 375509a3cff648acd57c8b975921ebc37b1878ba Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 11 Feb 2021 23:02:26 +1100 Subject: Make merging of Scintilla and Lexilla features work on older versions of Python. --- test/XiteQt.py | 2 +- test/XiteWin.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/XiteQt.py b/test/XiteQt.py index 30e6c8b23..e91829ad0 100644 --- a/test/XiteQt.py +++ b/test/XiteQt.py @@ -53,7 +53,7 @@ class XiteWin(): try: faceLex = Face.Face() faceLex.ReadFromFile(os.path.join(lexillaIncludeDirectory, "LexicalStyles.iface")) - self.face.features = {**self.face.features, **faceLex.features} + self.face.features.update(faceLex.features) except FileNotFoundError: print("Can't find " + "LexicalStyles.iface") diff --git a/test/XiteWin.py b/test/XiteWin.py index 662bff370..c71db04bb 100644 --- a/test/XiteWin.py +++ b/test/XiteWin.py @@ -165,7 +165,7 @@ class XiteWin(): try: faceLex = Face.Face() faceLex.ReadFromFile(os.path.join(lexillaIncludeDirectory, "LexicalStyles.iface")) - self.face.features = {**self.face.features, **faceLex.features} + self.face.features.update(faceLex.features) except FileNotFoundError: print("Can't find " + "LexicalStyles.iface") -- cgit v1.2.3