From 37bb2f6f9f7274acaf5e03d3e39ec27f078fd8a3 Mon Sep 17 00:00:00 2001 From: "FeRD (Frank Dana)" Date: Sat, 2 Jan 2021 18:33:39 -0500 Subject: [PATCH] Fraction: Restore __str__ for Python The Python code expects __str__() on a Fraction to return a "{num}:{den}" representation, which __repr__() no longer does. --- bindings/python/openshot.i | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/python/openshot.i b/bindings/python/openshot.i index f468bc35..a58d0bd6 100644 --- a/bindings/python/openshot.i +++ b/bindings/python/openshot.i @@ -206,7 +206,7 @@ return map1; } /* Display methods */ - const std::string __string__() { + const std::string __str__() { std::ostringstream result; result << $self->num << ":" << $self->den; return result.str();