Update of /cvsroot/pycrust/PyCrust
In directory sc8-pr-cvs1:/tmp/cvs-serv472
Modified Files:
shell.py
Log Message:
Removed a wart.
Index: shell.py
===================================================================
RCS file: /cvsroot/pycrust/PyCrust/shell.py,v
retrieving revision 1.121
retrieving revision 1.122
diff -C2 -d -r1.121 -r1.122
*** shell.py 4 Apr 2003 04:23:52 -0000 1.121
--- shell.py 5 Apr 2003 21:49:53 -0000 1.122
***************
*** 20,23 ****
--- 20,24 ----
import base
+ import buffer
import dispatcher
import frame
***************
*** 83,103 ****
def __init__(self, other):
"""Create a ShellFacade instance."""
- methods = [
- 'about',
- 'ask',
- 'clear',
- 'pause',
- 'prompt',
- 'quit',
- 'redirectStderr',
- 'redirectStdin',
- 'redirectStdout',
- 'run',
- 'runfile',
- 'wrap',
- 'zoom',
- ]
- for method in methods:
- self.__dict__[method] = getattr(other, method)
d = self.__dict__
d['other'] = other
--- 84,87 ----
***************
*** 148,158 ****
def _getAttributeNames(self):
"""Return list of magic attributes to extend introspection."""
! list = ['autoCallTip',
! 'autoComplete',
! 'autoCompleteCaseInsensitive',
! 'autoCompleteIncludeDouble',
! 'autoCompleteIncludeMagic',
! 'autoCompleteIncludeSingle',
! ]
list.sort()
return list
--- 132,156 ----
def _getAttributeNames(self):
"""Return list of magic attributes to extend introspection."""
! list = [
! 'about',
! 'ask',
! 'autoCallTip',
! 'autoComplete',
! 'autoCompleteCaseInsensitive',
! 'autoCompleteIncludeDouble',
! 'autoCompleteIncludeMagic',
! 'autoCompleteIncludeSingle',
! 'clear',
! 'pause',
! 'prompt',
! 'quit',
! 'redirectStderr',
! 'redirectStdin',
! 'redirectStdout',
! 'run',
! 'runfile',
! 'wrap',
! 'zoom',
! ]
list.sort()
return list
***************
*** 195,198 ****
--- 193,199 ----
stderr=PseudoFileErr(self.writeErr),
*args, **kwds)
+ # Set up the buffer.
+ self.buffer = buffer.Buffer(editor=self, interp=self.interp,
+ filename=None)
# Find out for which keycodes the interpreter will autocomplete.
self.autoCompleteKeys = self.interp.getAutoCompleteKeys()
|