Skip to content

Commit cf7b2b8

Browse files
committed
Remove superfluous __unicode__ declarations
The `__unicode__` protocol is not used in python3, and furthermore the `unicode()` builtin does not exist anymore.
1 parent 33d1dd7 commit cf7b2b8

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

babel/dates.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1281,9 +1281,6 @@ def __init__(self, pattern, format):
12811281
def __repr__(self):
12821282
return '<%s %r>' % (type(self).__name__, self.pattern)
12831283

1284-
def __unicode__(self):
1285-
return self.pattern
1286-
12871284
def __str__(self):
12881285
pat = self.pattern
12891286
return pat

babel/support.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,6 @@ def __len__(self):
207207
def __str__(self):
208208
return str(self.value)
209209

210-
def __unicode__(self):
211-
return unicode(self.value)
212-
213210
def __add__(self, other):
214211
return self.value + other
215212

0 commit comments

Comments
 (0)