diff options
Diffstat (limited to 'Python/ceval.c')
-rw-r--r-- | Python/ceval.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 727bc0c4d7..97f38ab0c0 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -1671,6 +1671,9 @@ rem(v, w) DECREF(w); return x; } + if (is_stringobject(v)) { + return formatstring(v, w); + } err_setstr(TypeError, "bad operand type(s) for %"); return NULL; } |