simplified

This commit is contained in:
Martin Diehl 2021-03-30 17:15:02 +02:00
parent 8884c5d29a
commit b9b66fac45
1 changed files with 1 additions and 2 deletions

View File

@ -139,8 +139,7 @@ class Result:
datasets = ['*']
elif datasets is False:
datasets = []
choice = datasets if hasattr(datasets,'__iter__') and not isinstance(datasets,str) else \
[datasets]
choice = [datasets] if isinstance(datasets,str) else datasets.copy()
inc = 'inc' if self.version_minor < 12 else 'increment_' # compatibility hack
if what == 'increments':