Skip to content

Commit

Permalink
No need for u-prefixes any more
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterJCLaw authored and lamby committed Jul 8, 2022
1 parent f61fcce commit 3374686
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion django_enumfield/enum.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def get_choices(self):
return [(x, x.display) for x in self]

def to_python(self, value):
if value in (None, "", u""):
if value in (None, ""):
return None

if isinstance(value, Item):
Expand Down
2 changes: 1 addition & 1 deletion django_enumfield/item.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def __str__(self):
return self.slug

def __repr__(self):
return u"<enum.Item: %d %s %r>" % (self.value, self.slug, self.display)
return "<enum.Item: %d %s %r>" % (self.value, self.slug, self.display)

def __hash__(self):
return self.value
Expand Down

0 comments on commit 3374686

Please sign in to comment.