Commit c73fb088 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI

Fix a warning; value is 0 is replaced with value == 0

parent 7bdd0f15
Pipeline #51956 passed with stages
in 5 minutes and 20 seconds
......@@ -29,7 +29,7 @@ except ImportError:
A list of valid values for this column
"""
if values is None or len(values) is 0:
if values is None or len(values) == 0:
raise AssertionError('Enum requires a list of values')
self.values = values[:]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment