From: Lukas Juhrich Date: Fri, 23 Sep 2022 14:49:49 +0000 (+0200) Subject: Remove superfluous `__unicode__` declarations X-Git-Tag: v2.11.0~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cdc77b4bf657ba94b175e12970f15a4351fc9f67;p=thirdparty%2Fbabel.git Remove superfluous `__unicode__` declarations The `__unicode__` protocol is not used in python3, and furthermore the `unicode()` builtin does not exist anymore. --- diff --git a/babel/dates.py b/babel/dates.py index c8a5a887..a30cac9d 100644 --- a/babel/dates.py +++ b/babel/dates.py @@ -1281,9 +1281,6 @@ class DateTimePattern: def __repr__(self): return '<%s %r>' % (type(self).__name__, self.pattern) - def __unicode__(self): - return self.pattern - def __str__(self): pat = self.pattern return pat diff --git a/babel/support.py b/babel/support.py index e11a9954..80e93400 100644 --- a/babel/support.py +++ b/babel/support.py @@ -207,9 +207,6 @@ class LazyProxy: def __str__(self): return str(self.value) - def __unicode__(self): - return unicode(self.value) - def __add__(self, other): return self.value + other