From 8dab2e11c596c338efed15673a873237d1236677 Mon Sep 17 00:00:00 2001 From: Samuel Riolo Date: Wed, 16 Jul 2014 16:56:37 +0200 Subject: [PATCH] restore access on variable --- src/martian/core.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/martian/core.txt b/src/martian/core.txt index 54f6c3e..bd23a19 100644 --- a/src/martian/core.txt +++ b/src/martian/core.txt @@ -374,7 +374,7 @@ can be given names using the ``name`` directive:: ... ... all_animals = {} ... def create_animal(name): - ... return animal.all_animals[name]() + ... return all_animals[name]() >>> from martiantest.fake import animal Let's define a grokker that can grok an ``Animal``. We could either @@ -403,7 +403,7 @@ Let's test our grokker:: We can create a snake now:: - >>> create_animal('snake') + >>> animal.create_animal('snake') Note that we can supply a different default value for the directive