Commit 745baf41 authored by Jérome Perrin's avatar Jérome Perrin

fixup! fix SyntaxWarning

parent 86e06020
......@@ -111,7 +111,7 @@ class Resource(XMLObject, XMLMatrix, VariatedMixin):
| morphology/2 | (colour/blue, colour/red, size/Man, size/Woman, morphology/2)
"""
result = []
if base_category_list is ():
if base_category_list == ():
base_category_list = self.getVariationBaseCategoryList(
omit_individual_variation=omit_individual_variation)
elif isinstance(base_category_list, str):
......@@ -127,7 +127,7 @@ class Resource(XMLObject, XMLMatrix, VariatedMixin):
if not omit_individual_variation:
for variation in individual_variation_list:
for base_category in variation.getVariationBaseCategoryList():
if base_category_list is ()\
if base_category_list == ()\
or base_category in base_category_list:
other_base_category_set.discard(base_category)
# XXX now, call Renderer a lot of time.
......
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