Skip to content

Commit

Permalink
Fraction: Restore __str__ for Python
Browse files Browse the repository at this point in the history
The Python code expects __str__() on a Fraction to return a
"{num}:{den}" representation, which __repr__() no longer does.
  • Loading branch information
ferdnyc committed Jan 29, 2021
1 parent aed0052 commit 37bb2f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bindings/python/openshot.i
Expand Up @@ -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();
Expand Down

0 comments on commit 37bb2f6

Please sign in to comment.