Skip to content

Commit f7bed5d

Browse files
committed
Remove Django 0.x support from ipr/feeds.py
- Legacy-Id: 6773
1 parent 6d94351 commit f7bed5d

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

ietf/ipr/feeds.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,7 @@ def item_pubdate(self, item):
2424
def item_author_name(self, item):
2525
s = item.get_submitter()
2626
if s:
27-
if isinstance(s.name, unicode):
28-
# for django.VERSION[0] > 0
29-
return s.name
30-
else:
31-
# for django.VERSION[0] == 0
32-
return unicode(s.name, encoding='utf-8', errors='replace')
27+
return s.name
3328
return None
3429
def item_author_email(self, item):
3530
s = item.get_submitter()

0 commit comments

Comments
 (0)