From 078573bb82989cdd115b9f79bf12386f93e1b1b8 Mon Sep 17 00:00:00 2001 From: Oleg Smirnov Date: Thu, 16 Apr 2020 13:08:00 +0200 Subject: [PATCH] fixed syntaxwarning from later pythons --- ShadeMS/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ShadeMS/main.py b/ShadeMS/main.py index 1c2ea96..ba42d4f 100644 --- a/ShadeMS/main.py +++ b/ShadeMS/main.py @@ -348,7 +348,7 @@ def generate_string_from_keys(template, keys, listsep=" ", titlesep=" ", prefix= # convert lists to strings, add Capitalized keys with titles for key, value in keys.items(): capkey = key.title() - if value is '': + if value == '': full_keys[capkey] = '' else: if type(value) is list: # e.g. scan=[1,2] becomes scan="1 2"