# HG changeset patch # User cat@eee # Date 1266525336 18000 # Node ID 0816cdb5a7dbed263fb225e6b8db6537992570b4 # Parent d34f3e8d895f796d95865d005442c06ad98fa581 fix quit() in py diff -r d34f3e8d895f -r 0816cdb5a7db cmd2.py --- 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): diff -r d34f3e8d895f -r 0816cdb5a7db docs/pycon2010/fileutil.script --- 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()