def deprecated_version_of(f, oldname, newname=None):
 if (newname is None):
  newname = f.__name__
 warning = ('The function ``%s`` is deprecated and is kept temporarily for backwards compatibility.\nPlease use the new name, ``%s``, instead.' % (oldname, newname))
 def fdepr(*a, **kw):
  warnings.warn(('MoviePy: ' + warning), PendingDeprecationWarning)
  return f(*a, **kw)
 fdepr.__doc__ = warning
 return fdepr

def deprecated_version_of ( f , oldname , newname = None ) : if ( newname is None ) : newname = f . __name__ warning = ( 'The function ``%s`` is deprecated and is kept temporarily for backwards compatibility.\nPlease use the new name, ``%s``, instead.' % ( oldname , newname ) ) def fdepr ( * a , ** kw ) : warnings . warn ( ( 'MoviePy: ' + warning ) , PendingDeprecationWarning ) return f ( * a , ** kw ) fdepr . __doc__ = warning return fdepr
indicates that a function is deprecated and has a new name .