예제 #1
0
파일: all.py 프로젝트: thalespaiva/sagelib
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)
예제 #2
0
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)