Commit fe4f769f authored by Neil Schemenauer's avatar Neil Schemenauer

Add __mod__ method to UserString.

parent b981df99
......@@ -55,6 +55,8 @@ class UserString:
def __mul__(self, n):
return self.__class__(self.data*n)
__rmul__ = __mul__
def __mod__(self, args):
return self.__class__(self.data % args)
# the following methods are defined in alphabetical order:
def capitalize(self): return self.__class__(self.data.capitalize())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment