Compare to `None` using identity `is` operator
This is a trivial change that replaces `==` operator with `is` operator, following PEP 8 guideline:
> Comparisons to singletons like None should always be done with is or is not, never the equality operators.
https://legacy.python.org/dev/peps/pep-0008/#programming-recommendations
diff --git a/scripts/lvl_genvk.py b/scripts/lvl_genvk.py
index 3ed5c0d..f0dfe4d 100644
--- a/scripts/lvl_genvk.py
+++ b/scripts/lvl_genvk.py
@@ -32,7 +32,7 @@
# Turn a list of strings into a regexp string matching exactly those strings
def makeREstring(list, default = None):
- if len(list) > 0 or default == None:
+ if len(list) > 0 or default is None:
return '^(' + '|'.join(list) + ')$'
else:
return default