mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
gst/__init__.py: Cleaner way of checking for existence of symbols in gst module.
Original commit message from CVS: * gst/__init__.py: Cleaner way of checking for existence of symbols in gst module.
This commit is contained in:
parent
cfef9679c9
commit
62714e8794
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2007-06-14 Edward Hervey <edward@fluendo.com>
|
||||
|
||||
* gst/__init__.py:
|
||||
Cleaner way of checking for existence of symbols in gst module.
|
||||
|
||||
2007-06-14 Jan Schmidt <thaytan@mad.scientist.com>
|
||||
|
||||
* examples/sinkelement-registry.py:
|
||||
|
|
|
@ -157,13 +157,13 @@ del sys
|
|||
# See #446674
|
||||
|
||||
import warnings
|
||||
if "parse_bin_from_description" in _gst.__dict__:
|
||||
if locals().has_key("parse_bin_from_description"):
|
||||
def gst_parse_bin_from_description(*args, **kwargs):
|
||||
warnings.warn("gst_parse_bin_from_description() is deprecated, please use parse_bin_from_description instead",
|
||||
DeprecationWarning)
|
||||
return parse_bin_from_description(*args, **kwargs)
|
||||
|
||||
if "message_new_buffering" in _gst.__dict__:
|
||||
if locals().has_key("message_new_buffering"):
|
||||
def gst_message_new_buffering(*args, **kwargs):
|
||||
warnings.warn("gst_message_new_buffering() is deprecated, please use message_new_buffering() instead",
|
||||
DeprecationWarning)
|
||||
|
|
Loading…
Reference in a new issue