Mercurial > python-cmd2
changeset 368:0816cdb5a7db
fix quit() in py
author | cat@eee |
---|---|
date | Thu, 18 Feb 2010 15:35:36 -0500 |
parents | d34f3e8d895f |
children | bc4b956d57b6 |
files | cmd2.py docs/pycon2010/fileutil.script |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/cmd2.py Thu Feb 18 15:15:29 2010 -0500 +++ b/cmd2.py Thu Feb 18 15:35:36 2010 -0500 @@ -347,7 +347,7 @@ result = get_paste_buffer() return result -class EmbeddedConsoleExit(Exception): +class EmbeddedConsoleExit(SystemExit): pass class EmptyStatement(Exception):
--- a/docs/pycon2010/fileutil.script Thu Feb 18 15:15:29 2010 -0500 +++ b/docs/pycon2010/fileutil.script Thu Feb 18 15:35:36 2010 -0500 @@ -1,3 +1,5 @@ +set echo on +py import os import os.path @@ -10,4 +12,4 @@ binds['bytes'] = stats.st_size cmd("""INSERT INTO cat.files (path, name, bytes) VALUES (%(path)s, %(name)s, %(bytes)s)""") - + quit()