def ChainPoset(*args, **kwds): r""" This function is deprecated and will be removed in a future version of Sage. Please use ``Posets.ChainPoset`` instead. TESTS:: sage: ChainPoset(3) doctest:1: DeprecationWarning: ChainPoset is deprecated, use Posets.ChainPoset instead! Finite lattice containing 3 elements """ deprecation("%s is deprecated, use Posets.%s instead!" % \ ("ChainPoset","ChainPoset")) return Posets.ChainPoset(*args, **kwds)
def ChainPoset(*args, **kwds): r""" This function is deprecated and will be removed in a future version of Sage. Please use ``Posets.ChainPoset`` instead. TESTS:: sage: ChainPoset(3) doctest:...: DeprecationWarning: ChainPoset is deprecated, use Posets.ChainPoset instead! See http://trac.sagemath.org/10998 for details. Finite lattice containing 3 elements """ deprecation(10998, "%s is deprecated, use Posets.%s instead!" % \ ("ChainPoset","ChainPoset")) return Posets.ChainPoset(*args, **kwds)