summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Juhrich <lukas.juhrich@agdsn.de>2022-09-23 16:49:49 +0200
committerAarni Koskela <akx@iki.fi>2022-09-27 19:24:02 +0300
commitcdc77b4bf657ba94b175e12970f15a4351fc9f67 (patch)
tree4a7102c6e650b97788e3260fac6a4ec1957145b3
parent33d1dd738af8da30c7f24efe6b76ff8f56d154fc (diff)
downloadbabel-cdc77b4bf657ba94b175e12970f15a4351fc9f67.tar.gz
Remove superfluous `__unicode__` declarations
The `__unicode__` protocol is not used in python3, and furthermore the `unicode()` builtin does not exist anymore.
-rw-r--r--babel/dates.py3
-rw-r--r--babel/support.py3
2 files changed, 0 insertions, 6 deletions
diff --git a/babel/dates.py b/babel/dates.py
index c8a5a88..a30cac9 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 e11a995..80e9340 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