Show More
@@ -1,7 +1,7 b'' | |||||
1 | # -*- coding: utf-8 -*- |
|
1 | # -*- coding: utf-8 -*- | |
2 | """Magic functions for InteractiveShell. |
|
2 | """Magic functions for InteractiveShell. | |
3 |
|
3 | |||
4 |
$Id: Magic.py 2 |
|
4 | $Id: Magic.py 2301 2007-05-02 06:47:37Z fperez $""" | |
5 |
|
5 | |||
6 | #***************************************************************************** |
|
6 | #***************************************************************************** | |
7 | # Copyright (C) 2001 Janko Hauser <jhauser@zscout.de> and |
|
7 | # Copyright (C) 2001 Janko Hauser <jhauser@zscout.de> and | |
@@ -2251,7 +2251,8 b' Currently the magic system has the following functions:\\n"""' | |||||
2251 | if opts_r: |
|
2251 | if opts_r: | |
2252 | self.shell.runlines(file_read(filename)) |
|
2252 | self.shell.runlines(file_read(filename)) | |
2253 | else: |
|
2253 | else: | |
2254 |
self.shell.safe_execfile(filename,self.shell.user_ns |
|
2254 | self.shell.safe_execfile(filename,self.shell.user_ns, | |
|
2255 | self.shell.user_ns) | |||
2255 | if use_temp: |
|
2256 | if use_temp: | |
2256 | try: |
|
2257 | try: | |
2257 | return open(filename).read() |
|
2258 | return open(filename).read() |
General Comments 0
You need to be logged in to leave comments.
Login now