home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyc (Python 2.6)
-
-
- def prefilter_shell(self, line, continuation):
- if line:
- l0 = line[0]
- if l0 in '~/.':
- return self._prefilter('!%s' % line, continuation)
- if l0 == '$':
- lrest = line[1:]
- if lrest.startswith('$'):
- return self._prefilter('%ssc -l %s' % (self.ESC_MAGIC, lrest[1:]), continuation)
- return self._prefilter('%ssc %s' % (self.ESC_MAGIC, lrest), continuation)
- l0 == '$'
- return self._prefilter(line, continuation)
- line
- return self._prefilter(line, continuation)
-
- from IPython.iplib import InteractiveShell
- InteractiveShell.prefilter = prefilter_shell
- del InteractiveShell
- del prefilter_shell
- import os
- import sys
- import shutil
- from IPython.genutils import system, shell, getoutput, getoutputerror
- sout = getoutput
-
- lout = lambda cmd: getoutput(cmd, split = 1)
-
- def pysh():
- pass
-
- __IPYTHON__.default_option('cd', '-q')
- __IPYTHON__.magic_rehashx()
- __IPYTHON__.magic_unalias('sc')
- __IPYTHON__.magic_unalias('sx')
- import re
- __IPYTHON__.line_split = re.compile('^([\\s*,;/])([\\?\\w\\.\\-\\+]+\\w*\\s*)(\\(?.*$)')
- del re
-