make operators simpler

This commit is contained in:
Matthias committed 2022-05-15 17:52:23 +02:00
1 parent af8bddf690
commit 77aeecf23a
12 files changed
+25 -25

No files matched your search

+1 -1
View File
@@ -199,7 +199,7 @@ class FileManager:
try:
# Excel import casts number-looking-items into floats, which is annoying
if item == int(item) and not str(item) == str(int(item)):
if item == int(item) and str(item) != str(int(item)):
data[idx] = int(item)
except ValueError:
pass
+1 -1
View File
@@ -132,7 +132,7 @@ class SettingsTest(TestCase):
if description is None:
raise ValueError(f'Missing GLOBAL_SETTING description for {key}') # pragma: no cover
if not key == key.upper():
if key != key.upper():
raise ValueError(f"SETTINGS key '{key}' is not uppercase") # pragma: no cover
def test_defaults(self):