mirror of
https://github.com/evennia/evennia.git
synced 2026-03-29 03:57:17 +02:00
Flipped __radd__ arguments for ANSIString.
This commit is contained in:
parent
6fbe5c4337
commit
e9198fe87a
1 changed files with 2 additions and 2 deletions
|
|
@ -363,8 +363,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