Commit 279af385 authored by Dr.李's avatar Dr.李

using empty list instead of none

parent 960f9b92
......@@ -31,9 +31,9 @@ class Universe(object):
special_codes: Iterable = None,
filter_cond=None):
self.name = name
self.base_universe = sorted([u.lower() for u in base_universe]) if base_universe else None
self.exclude_universe = sorted([u.lower() for u in exclude_universe]) if exclude_universe else None
self.special_codes = sorted(special_codes) if special_codes else None
self.base_universe = sorted([u.lower() for u in base_universe]) if base_universe else []
self.exclude_universe = sorted([u.lower() for u in exclude_universe]) if exclude_universe else []
self.special_codes = sorted(special_codes) if special_codes else []
self.filter_cond = filter_cond
def __eq__(self, rhs):
......
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