# HG changeset patch # User Jeff Hammel # Date 1606252360 28800 # Node ID d66c25418f4351e1befa42f0aa59538cfdd5940a # Parent 2d05ad36263776bf23725bd31c6305d0f5952b2d py3 diff -r 2d05ad362637 -r d66c25418f43 toolbox/dispatcher.py --- 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__'):