##// END OF EJS Templates
simplify include/exclude conditions
MinRK -
Show More
@@ -133,11 +133,10 b' class DisplayFormatter(Configurable):'
133 format_dict = {}
133 format_dict = {}
134
134
135 for format_type, formatter in self.formatters.items():
135 for format_type, formatter in self.formatters.items():
136 if format_type not in include:
136 if include and format_type not in include:
137 continue
138 if exclude and format_type in exclude:
137 continue
139 continue
138 if exclude is not None:
139 if format_type in exclude:
140 continue
141 try:
140 try:
142 data = formatter(obj)
141 data = formatter(obj)
143 except:
142 except:
General Comments 0
You need to be logged in to leave comments. Login now