Skip to content

Commit

Permalink
fix: PopularityFrame email encoding bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicfit committed Mar 7, 2020
1 parent 642d897 commit 11abd2c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions eyed3/id3/frames.py
@@ -1,5 +1,4 @@
from io import BytesIO
from codecs import ascii_encode
from collections import namedtuple

from .. import core
Expand Down Expand Up @@ -953,7 +952,7 @@ def email(self):
def email(self, email):
# XXX: becoming a pattern?
if isinstance(email, str):
self._email = email.encode(ascii_encode)
self._email = email.encode("ascii")
elif isinstance(email, bytes):
_ = email.decode("ascii") # noqa
self._email = email
Expand Down

0 comments on commit 11abd2c

Please sign in to comment.