Commits

Travis Shirk committed 05c6d58

Added a missing decorator @requireUnicode

  • Participants
  • Parent commits 647e38d

Comments (0)

Files changed (1)

src/eyed3/id3/frames.py

 
 class DateFrame(TextFrame):
     ## \a date Either an ISO 8601 date string or a eyed3.core.Date object.
-    def __init__(self, id, date=u"", unsync_default=False):
+    def __init__(self, id, date="", unsync_default=False):
         assert(id in DATE_FIDS or id in DEPRECATED_DATE_FIDS)
         super(DateFrame, self).__init__(id, text=unicode(date),
                                         unsync_default=unsync_default)
 # Data string format:
 # encoding (one byte) + description + "\x00" + url (ascii)
 class UserUrlFrame(UrlFrame):
+    @requireUnicode("description")
     def __init__(self, id=USERURL_FID, description=u"", url="",
                  unsync_default=False):
         UrlFrame.__init__(self, id, url=url, unsync_default=unsync_default)