diff --git a/Lib/UserString.py b/Lib/UserString.py index 8bd2c422abc..2819ab0f8f0 100755 --- a/Lib/UserString.py +++ b/Lib/UserString.py @@ -55,6 +55,8 @@ def __radd__(self, other): 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())