Changeset 834

Show
Ignore:
Timestamp:
03/18/08 20:59:35 (8 months ago)
Author:
sontag
Message:

Fixes #81. In these versions, the command line is getting saved as unicode during the ipython session. When the unicode is executed, the asterisk is not passed correctly to the task. This change converts the command to string type before using it. This may cause issues down the road with other languages, but we are far from supporting non-English.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/ipython_api.py

    r819 r834  
    284284 
    285285    def prefilter(self, IP, line, continuation): 
    286         """prefilter pre-processes input to do PyRAF substitutions before passing it on 
    287         to IPython. 
    288         """ 
    289         line = self.cmd(line) 
     286        """prefilter pre-processes input to do PyRAF substitutions before 
     287           passing it on to IPython. 
     288        """ 
     289        line = self.cmd(str(line)) # use type str here, not unicode 
    290290        return self.InteractiveShell._prefilter(IP, line, continuation) 
    291291