Show More
@@ -6,7 +6,7 b' Requires Python 2.3 or newer.' | |||||
6 |
|
6 | |||
7 | This file contains all the classes and helper functions specific to IPython. |
|
7 | This file contains all the classes and helper functions specific to IPython. | |
8 |
|
8 | |||
9 |
$Id: iplib.py 24 |
|
9 | $Id: iplib.py 2430 2007-06-14 15:59:06Z vivainio $ | |
10 | """ |
|
10 | """ | |
11 |
|
11 | |||
12 | #***************************************************************************** |
|
12 | #***************************************************************************** | |
@@ -2212,7 +2212,16 b' want to merge them back into the new files.""" % locals()' | |||||
2212 | newcmd = '%s(%s)' % (iFun.rstrip(), theRest) |
|
2212 | newcmd = '%s(%s)' % (iFun.rstrip(), theRest) | |
2213 |
|
2213 | |||
2214 | if auto_rewrite: |
|
2214 | if auto_rewrite: | |
2215 |
|
|
2215 | rw = self.outputcache.prompt1.auto_rewrite() + newcmd | |
|
2216 | ||||
|
2217 | try: | |||
|
2218 | # plain ascii works better w/ pyreadline, on some machines, so | |||
|
2219 | # we use it and only print uncolored rewrite if we have unicode | |||
|
2220 | rw = str(rw) | |||
|
2221 | print >>Term.cout, rw | |||
|
2222 | except UnicodeEncodeError: | |||
|
2223 | print "-------------->" + newcmd | |||
|
2224 | ||||
2216 | # log what is now valid Python, not the actual user input (without the |
|
2225 | # log what is now valid Python, not the actual user input (without the | |
2217 | # final newline) |
|
2226 | # final newline) | |
2218 | self.log(line,newcmd,continue_prompt) |
|
2227 | self.log(line,newcmd,continue_prompt) |
@@ -1,3 +1,10 b'' | |||||
|
1 | 2007-06-14 Ville Vainio <vivainio@gmail.com> | |||
|
2 | ||||
|
3 | * iplib.py (handle_auto): Try to use ascii for printing "--->" | |||
|
4 | autocall rewrite indication, becausesometimes unicode fails to print | |||
|
5 | properly (and you get ' - - - '). Use plain uncoloured ---> for | |||
|
6 | unicode. | |||
|
7 | ||||
1 | 2007-06-13 Ville Vainio <vivainio@gmail.com> |
|
8 | 2007-06-13 Ville Vainio <vivainio@gmail.com> | |
2 |
|
9 | |||
3 | * ipapi.py: _ip.to_user_ns(vars, interactive = True). |
|
10 | * ipapi.py: _ip.to_user_ns(vars, interactive = True). |
General Comments 0
You need to be logged in to leave comments.
Login now