Skip to content

Commit

Permalink
Removes reference to basestring
Browse files Browse the repository at this point in the history
  • Loading branch information
hugobessa committed Jul 26, 2024
1 parent 628da2c commit 4ecb22f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlebars/_compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def pick(context, name, default=None):
try:
return context[name]
except (KeyError, TypeError, AttributeError):
if isinstance(name, basestring):
if isinstance(name, str):
try:
exists = hasattr(context, name)
except UnicodeEncodeError:
Expand Down

0 comments on commit 4ecb22f

Please sign in to comment.