Mercurial > hg > toolbox
diff toolbox/dispatcher.py @ 14:d66c25418f43
py3
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Tue, 24 Nov 2020 13:12:40 -0800 |
parents | 394648c67478 |
children |
line wrap: on
line diff
--- a/toolbox/dispatcher.py Tue Nov 24 13:11:51 2020 -0800 +++ b/toolbox/dispatcher.py Tue Nov 24 13:12:40 2020 -0800 @@ -51,11 +51,11 @@ self.item_plural = self.item_name + 's' # should templates be reloaded? - if isinstance(self.reload, basestring): + if isinstance(self.reload, str): self.reload = self.reload.lower() == 'true' # model: backend storage and associated methods - if 'fields' in kw and isinstance(kw['fields'], basestring): + if 'fields' in kw and isinstance(kw['fields'], str): # split fields if given as a string kw['fields'] = strsplit(kw['fields']) if hasattr(self.model_type, '__call__'):