Skip to content

Commit 82c986a

Browse files
authored
Fix a few typos and cosmetics inconsistencies (#1416)
Signed-off-by: Mark Reid <[email protected]>
1 parent 0950f50 commit 82c986a

File tree

11 files changed

+14
-14
lines changed

11 files changed

+14
-14
lines changed

src/opentimelineio/errorStatus.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ ErrorStatus::outcome_to_string(Outcome o)
6363
case MEDIA_REFERENCES_DO_NOT_CONTAIN_ACTIVE_KEY:
6464
return "active key not found in media references";
6565
case MEDIA_REFERENCES_CONTAIN_EMPTY_KEY:
66-
return "the media referencess cannot contain an empty key";
66+
return "the media references cannot contain an empty key";
6767
default:
6868
return "unknown/illegal ErrorStatus::Outcome code";
6969
};

src/opentimelineio/serializableObject.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class SerializableObject
3838
* You cannot directly delete a SerializableObject* (or, hopefully, anything
3939
* derived from it, as all derivations are required to protect the destructor).
4040
*
41-
* Instead, call the member funtion possibly_delete(), which deletes the object
41+
* Instead, call the member function possibly_delete(), which deletes the object
4242
* (and, recursively, the objects owned by this object), provided the objects
4343
* are not under external management (e.g. prevented from being deleted because an
4444
* external scripting system is holding a reference to them).
@@ -72,7 +72,7 @@ class SerializableObject
7272
// is set appropriately.
7373
SerializableObject* clone(ErrorStatus* error_status = nullptr) const;
7474

75-
// Allow external system (e.g. Python, Swifft) to add serializable fields
75+
// Allow external system (e.g. Python, Swift) to add serializable fields
7676
// on the fly. C++ implementations should have no need for this functionality.
7777
AnyDictionary& dynamic_fields() { return _dynamic_fields; }
7878

src/opentimelineview/timeline_widget.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ def _cache_tracks(self):
379379
'''
380380
Create a doubly linked list to navigate from track to track:
381381
track->get_next_up & track->get_next_up
382-
"map_to_wodget" : Create a map to retrieve the pyside widget from
382+
"map_to_widget" : Create a map to retrieve the pyside widget from
383383
the otio item
384384
'''
385385
data_cache = dict()
@@ -785,7 +785,7 @@ def set_timeline(self, timeline):
785785
self.add_stack(timeline.tracks)
786786

787787
def add_stack(self, stack):
788-
"""open a tab for the stack or go to it if already present"""
788+
"""Open a tab for the stack or go to it if already present"""
789789

790790
# find the tab for the stack if the tab has already been opened
791791
tab_index = next(

src/py-opentimelineio/opentimelineio-bindings/otio_anyVector.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ struct AnyVectorProxy : public AnyVector::MutationStamp {
1414
using MutationStamp = AnyVector::MutationStamp;
1515

1616
static void throw_array_was_deleted() {
17-
throw py::value_error("underlying C++ AnyVector object has been destroyed");
17+
throw py::value_error("Underlying C++ AnyVector object has been destroyed");
1818
}
1919

2020
struct Iterator {

src/py-opentimelineio/opentimelineio-bindings/otio_imath.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ CLASS _type_checked(py::object const& rhs, char const* op) {
1818
}
1919
catch (...) {
2020
std::string rhs_type = py::cast<std::string>(rhs.get_type().attr("__name__"));
21-
throw py::type_error(string_printf("unsupported operand type(s) for %s: "
21+
throw py::type_error(string_printf("Unsupported operand type(s) for %s: "
2222
"%s and %s", typeid(CLASS).name(), op, rhs_type.c_str()));
2323
}
2424
}

src/py-opentimelineio/opentimelineio-bindings/otio_utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ AnyDictionary py_to_any_dictionary(py::object const& o) {
114114
any a;
115115
py_to_any(o, &a);
116116
if (!compare_typeids(a.type(), typeid(AnyDictionary))) {
117-
throw py::type_error(string_printf("expected an AnyDictionary (i.e. metadata); got %s instead",
117+
throw py::type_error(string_printf("Expected an AnyDictionary (i.e. metadata); got %s instead",
118118
type_name_for_error_message(a).c_str()));
119119
}
120120

src/py-opentimelineio/opentimelineio/console/autogen_serialized_datamodel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def _generate_model_for_module(mod, classes, modules):
152152
modules.add(mod)
153153

154154
# fetch the classes from this module
155-
serializeable_classes = [
155+
serializable_classes = [
156156
thing for thing in mod.__dict__.values()
157157
if (
158158
inspect.isclass(thing)
@@ -168,7 +168,7 @@ def _generate_model_for_module(mod, classes, modules):
168168

169169
# serialize/deserialize the classes to capture their serialized parameters
170170
model = {}
171-
for cl in serializeable_classes:
171+
for cl in serializable_classes:
172172
if cl in SKIP_CLASSES:
173173
continue
174174

src/py-opentimelineio/opentimelineio/hooks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def available_hookscripts():
141141

142142

143143
def scripts_attached_to(hook):
144-
"""Return an editable list of all the hook scriptss that are attached to
144+
"""Return an editable list of all the hook scripts that are attached to
145145
the specified hook, in execution order. Changing this list will change the
146146
order that scripts run in, and deleting a script will remove it from
147147
executing

src/py-opentimelineio/opentimelineio/plugins/manifest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def schemadef_module_from_name(self, name):
216216

217217

218218
def load_manifest():
219-
""" Walk the plugin manifest discovery systems and accumulate manifests.
219+
"""Walk the plugin manifest discovery systems and accumulate manifests.
220220
221221
The order of loading (and precedence) is:
222222

src/py-opentimelineio/opentimelineio/schema/track.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
@add_method(_otio.Track)
99
def each_clip(self, search_range=None, shallow_search=False):
10-
""" Generator that returns each clip contained in the track
10+
"""Generator that returns each clip contained in the track
1111
in the order in which it is found.
1212
1313
.. deprecated:: 0.14.0

0 commit comments

Comments
 (0)