From c7d9440a73dcf3970961c661855b1d92ee26ce86 Mon Sep 17 00:00:00 2001 From: Sergey Maranchuk Date: Sat, 18 Apr 2020 12:15:40 +0300 Subject: remove __unicode__ method --- src/pyramid/httpexceptions.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'src') diff --git a/src/pyramid/httpexceptions.py b/src/pyramid/httpexceptions.py index c8af559e3..9fd5f7d55 100644 --- a/src/pyramid/httpexceptions.py +++ b/src/pyramid/httpexceptions.py @@ -143,8 +143,6 @@ def _no_escape(value): if value is None: return '' if not isinstance(value, str): - if hasattr(value, '__unicode__'): - value = value.__unicode__() if isinstance(value, bytes): value = text_(value, 'utf-8') else: -- cgit v1.2.3