From 66c4616241749ce8950c0a48a529c303d430eb99 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Thu, 22 Jan 2009 18:36:59 -0500 Subject: added next entry links; screenshot; sage tweaks (still not very good); amd64 instructions --- other/scm.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'other/scm.py') diff --git a/other/scm.py b/other/scm.py index 0152f9f..5d0d4d5 100644 --- a/other/scm.py +++ b/other/scm.py @@ -114,7 +114,9 @@ class SCM(Expect): try: with gc_disabled(): - return self._eval_line(code, **kwds) + + #return '\n'.join([self._eval_line(L, **kwds) for L in code.split('\n') if L != '']) + return self._eval_line(code.replace('\n',''), **kwds) except KeyboardInterrupt: # DO NOT CATCH KeyboardInterrupt, as it is being caught # by _eval_line @@ -338,7 +340,6 @@ def scm_console(): # This will only spawn local processes os.system('scm') - def scm_version(): """ EXAMPLES: -- cgit v1.2.3