diff --git a/nw/theme.py b/nw/theme.py index b09af9b0..70d101c6 100644 --- a/nw/theme.py +++ b/nw/theme.py @@ -279,7 +279,7 @@ class Theme: continue logger.verbose("Checking theme syntax for '%s'" % syntaxFile) try: - confParser.read_file(open(syntaxPath,more="r",encoding="utf8")) + confParser.read_file(open(syntaxPath,mode="r",encoding="utf8")) except Exception as e: self.theParent.makeAlert(["Could not load syntax file",str(e)],nwAlert.ERROR) return []