mirror of
https://github.com/evennia/evennia.git
synced 2026-03-27 18:26:32 +01:00
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):
|
||||
if not isinstance(other, basestring):
|
||||
return NotImplemented
|
||||
return ANSIString(self.raw_string + getattr(
|
||||
other, 'raw_string', other), decoded=True)
|
||||
return ANSIString(getattr(
|
||||
other, 'raw_string', other), decoded=True + self.raw_string)
|
||||
|
||||
def __getslice__(self, i, j):
|
||||
return self.__getitem__(slice(i, j))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue