diff options
author | bnewbold <bnewbold@eta.mit.edu> | 2009-01-22 18:36:59 -0500 |
---|---|---|
committer | bnewbold <bnewbold@eta.mit.edu> | 2009-01-22 18:36:59 -0500 |
commit | 66c4616241749ce8950c0a48a529c303d430eb99 (patch) | |
tree | ddba020d2c6faa0ab37a0bc407a817ebce216fa2 /other/scm.py | |
parent | 1333977014c983e39c1392eb7ca71800085ba1eb (diff) | |
download | 8thesis-66c4616241749ce8950c0a48a529c303d430eb99.tar.gz 8thesis-66c4616241749ce8950c0a48a529c303d430eb99.zip |
added next entry links; screenshot; sage tweaks (still not very good); amd64 instructions
Diffstat (limited to 'other/scm.py')
-rw-r--r-- | other/scm.py | 5 |
1 files changed, 3 insertions, 2 deletions
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: |