From d7bee4fbbcea6983cf9fe1e0b9c5595b29dfcefc Mon Sep 17 00:00:00 2001 From: xuanyandong Date: Thu, 7 Jan 2021 19:19:09 +0800 Subject: [PATCH] remove __unicode__ This is no longer needed in Python 3. Change-Id: Iea04bd4454d8da92b00eff93366c457c04c3bb27 --- venus/exception.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/venus/exception.py b/venus/exception.py index 13ca96b..65d509b 100644 --- a/venus/exception.py +++ b/venus/exception.py @@ -95,9 +95,6 @@ class VenusException(Exception): def _should_format(self): return self.kwargs['message'] is None or '%(message)' in self.message - def __unicode__(self): - return str(self.msg) - class NotAuthorized(VenusException): message = _("Not authorized.")