Skip to content

Commit

Permalink
change to bytes object for base64 decode
Browse files Browse the repository at this point in the history
  • Loading branch information
arska committed May 5, 2016
1 parent 53fb317 commit fd07a9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vobject/vcard.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def decode(cls, line):
line.encoding_param = cls.base64string
encoding = getattr(line, 'encoding_param', None)
if encoding:
line.value = codecs.decode(line.value, "base64")
line.value = codecs.decode(bytes(line.value, "utf-8"), "base64")
else:
line.value = stringToTextValues(line.value)[0]
line.encoded=False
Expand Down

0 comments on commit fd07a9f

Please sign in to comment.