Skip to content

Commit

Permalink
Remove superfluous __unicode__ declarations
Browse files Browse the repository at this point in the history
The `__unicode__` protocol is not used in python3,
and furthermore the `unicode()` builtin does not exist anymore.
  • Loading branch information
lukasjuhrich committed Sep 23, 2022
1 parent 33d1dd7 commit cf7b2b8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions babel/dates.py
Original file line number Diff line number Diff line change
Expand Up @@ -1281,9 +1281,6 @@ def __init__(self, pattern, format):
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
Expand Down
3 changes: 0 additions & 3 deletions babel/support.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,6 @@ def __len__(self):
def __str__(self):
return str(self.value)

def __unicode__(self):
return unicode(self.value)

def __add__(self, other):
return self.value + other

Expand Down

0 comments on commit cf7b2b8

Please sign in to comment.