You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Fraction: Restore __str__ for Python
The Python code expects __str__() on a Fraction to return a
"{num}:{den}" representation, which __repr__() no longer does.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user