mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
overrides: fix a few typos in exception messages
This commit is contained in:
parent
7dffdb6864
commit
664c153a5f
1 changed files with 2 additions and 2 deletions
|
@ -118,7 +118,7 @@ class Pad(Gst.Pad):
|
||||||
try:
|
try:
|
||||||
res = self._real_query_func(pad, parent, query)
|
res = self._real_query_func(pad, parent, query)
|
||||||
except TypeError:
|
except TypeError:
|
||||||
raise TypeError("Invalid query method %s, 2 or 3 arguments requiered"
|
raise TypeError("Invalid query method %s, 2 or 3 arguments required"
|
||||||
% self._real_query_func)
|
% self._real_query_func)
|
||||||
query.mini_object.refcount += 1
|
query.mini_object.refcount += 1
|
||||||
|
|
||||||
|
@ -157,7 +157,7 @@ class GhostPad(Gst.GhostPad):
|
||||||
def __init__(self, name, target=None, direction=None):
|
def __init__(self, name, target=None, direction=None):
|
||||||
if direction is None:
|
if direction is None:
|
||||||
if target is None:
|
if target is None:
|
||||||
raise TypeError('you must pass at least one of target'
|
raise TypeError('you must pass at least one of target '
|
||||||
'and direction')
|
'and direction')
|
||||||
direction = target.props.direction
|
direction = target.props.direction
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue