aboutsummaryrefslogtreecommitdiffstats
path: root/other/scm.py
diff options
context:
space:
mode:
Diffstat (limited to 'other/scm.py')
-rw-r--r--other/scm.py5
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: