diff options
Diffstat (limited to 'plac/doc/ishelve2.py')
-rw-r--r-- | plac/doc/ishelve2.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plac/doc/ishelve2.py b/plac/doc/ishelve2.py index 9b8b57e..baef210 100644 --- a/plac/doc/ishelve2.py +++ b/plac/doc/ishelve2.py @@ -36,8 +36,7 @@ class ShelveInterface(object): yield 'deleting %s' % name del self.sh[name] # no error checking -main = ShelveInterface # the main 'function' can also be a class! +main = ShelveInterface # useful for the tests if __name__ == '__main__': - shelve_interface = plac.call(main) - plac.Interpreter(shelve_interface).interact() + plac.Interpreter(plac.call(ShelveInterface)).interact() |