From a4c5eff09cbf130a393dd69f0d35516417e3ab52 Mon Sep 17 00:00:00 2001 From: Nadia Lafreniere Date: Fri, 11 Sep 2015 22:08:41 -0400 Subject: [PATCH] Moving doctests in lyndon_word.py + editing the list of modules for documentation (reviewer's suggestions) --- src/doc/en/reference/combinat/module_list.rst | 2 +- src/sage/combinat/lyndon_word.py | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/doc/en/reference/combinat/module_list.rst b/src/doc/en/reference/combinat/module_list.rst index fddfaab81e4..bf04eb0e58d 100644 --- a/src/doc/en/reference/combinat/module_list.rst +++ b/src/doc/en/reference/combinat/module_list.rst @@ -125,7 +125,6 @@ Comprehensive Module list sage/combinat/k_tableau sage/combinat/kazhdan_lusztig sage/combinat/knutson_tao_puzzles - sage/combinat/lyndon_word sage/combinat/matrices/__init__ sage/combinat/matrices/all sage/combinat/matrices/dancing_links @@ -326,6 +325,7 @@ Comprehensive Module list sage/combinat/words/alphabet sage/combinat/words/finite_word sage/combinat/words/infinite_word + sage/combinat/words/lyndon_word sage/combinat/words/morphism sage/combinat/words/paths sage/combinat/words/shuffle_product diff --git a/src/sage/combinat/lyndon_word.py b/src/sage/combinat/lyndon_word.py index 876152664b6..bff8276243c 100644 --- a/src/sage/combinat/lyndon_word.py +++ b/src/sage/combinat/lyndon_word.py @@ -2,13 +2,11 @@ Lyndon Word This module has been moved to sage.combinat.words. It should be called from there. -""" - -from sage.misc.lazy_import import lazy_import -lazy_import('sage.combinat.words.lyndon_word', '*', deprecation=19150) -""" TESTS:: -sage: from sage.combinat.lyndon_word import * + sage: from sage.combinat.lyndon_word import LyndonWord """ + +from sage.misc.lazy_import import lazy_import +lazy_import('sage.combinat.words.lyndon_word', '*', deprecation=19150)