Merge pull request #461 from Kelketek/master
Fixed __radd__ for ANSIString. Resolves Issue #460.
This commit is contained in:
commit
2fe95f28ff
1 changed files with 2 additions and 2 deletions
|
|
@ -380,8 +380,8 @@ class ANSIString(unicode):
|
||||||
def __radd__(self, other):
|
def __radd__(self, other):
|
||||||
if not isinstance(other, basestring):
|
if not isinstance(other, basestring):
|
||||||
return NotImplemented
|
return NotImplemented
|
||||||
return ANSIString(self.raw_string + getattr(
|
return ANSIString(getattr(
|
||||||
other, 'raw_string', other), decoded=True)
|
other, 'raw_string', other), decoded=True + self.raw_string)
|
||||||
|
|
||||||
def __getslice__(self, i, j):
|
def __getslice__(self, i, j):
|
||||||
return self.__getitem__(slice(i, j))
|
return self.__getitem__(slice(i, j))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue