Skip to content

Commit

Permalink
Python 3.x: Darm string representation returns a bytes object instead…
Browse files Browse the repository at this point in the history
… of string object. Use decode method to conform with Python 2.x to return a string object.
  • Loading branch information
up-n-atom committed Nov 26, 2014
1 parent 71a027e commit 0ee5797
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion darm.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def __repr__(self):
def __str__(self):
x = _DarmStr()
if _lib.darm_str2(self.d, byref(x), True) == 0:
return x.total
return x.total.decode('ascii')
return ''


Expand Down

0 comments on commit 0ee5797

Please sign in to comment.