Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

misc bugs + please pyflakes #89

Merged
merged 12 commits into from
Mar 31, 2024
Prev Previous commit
Next Next commit
fix undefined name "unicode"
  • Loading branch information
a-detiste committed Mar 16, 2024
commit 61112e2dadef570659ae2df9d7a429aedb83c8b1
2 changes: 1 addition & 1 deletion paste/exceptions/collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ def safeStr(self, obj):
return str(obj)
except UnicodeEncodeError:
try:
return unicode(obj).encode(FALLBACK_ENCODING, 'replace')
return str(obj).encode(FALLBACK_ENCODING, 'replace')
except UnicodeEncodeError:
# This is when something is really messed up, but this can
# happen when the __str__ of an object has to handle unicode
Expand Down