diff en/examples/run-example @ 168:f8b5b782e150

Backed out changeset 08a4467f489162c14cf17b94aa771a23dd6f02dc It just didn't work. Sigh.
author Bryan O'Sullivan <bos@serpentine.com>
date Mon, 26 Mar 2007 23:20:59 -0700
parents 08a4467f4891
children 5f305adeb584
line wrap: on
line diff
--- a/en/examples/run-example	Mon Mar 26 22:59:43 2007 -0700
+++ b/en/examples/run-example	Mon Mar 26 23:20:59 2007 -0700
@@ -50,7 +50,7 @@
     shell = '/usr/bin/env bash'
     ps1 = '__run_example_ps1__ '
     ps2 = '__run_example_ps2__ '
-    pi_re = re.compile(r'#\$\s*(drop_output|name|ignore):\s*(.*)$')
+    pi_re = re.compile(r'#\$\s*(name|ignore):\s*(.*)$')
     
     timeout = 5
 
@@ -189,8 +189,6 @@
 
         err = False
 
-        drop_output = False
-
         try:
             try:
                 # eat first prompt string from shell
@@ -221,12 +219,10 @@
                                 ofp = None
                         elif pi == 'ignore':
                             ignore.append(rest)
-                        elif pi == 'drop_output':
-                            drop_output = dict(yes=1,no=0)[rest.lower()]
                     elif hunk.strip():
                         # it's something we should execute
                         newps, output = self.sendreceive(hunk)
-                        if not ofp or drop_output:
+                        if not ofp:
                             continue
                         # first, print the command we ran
                         if not hunk.startswith('#'):