##// END OF EJS Templates
read_py_url-> read_py_file
Matthias BUSSONNIER -
Show More
@@ -2777,12 +2777,12 b' class InteractiveShell(SingletonConfigurable, Magic):'
2777
2777
2778 try :
2778 try :
2779 pyfile = get_py_filename(target)
2779 pyfile = get_py_filename(target)
2780 return openpy.read_py_url(pyfile, skip_encoding_cookie=True)
2780 return openpy.read_py_file(pyfile, skip_encoding_cookie=True)
2781 except IOError:
2781 except IOError:
2782 pass
2782 pass
2783
2783
2784 if os.path.isfile(target): # Read file
2784 if os.path.isfile(target): # Read file
2785 return openpy.read_py_url(target, skip_encoding_cookie=True)
2785 return openpy.read_py_file(target, skip_encoding_cookie=True)
2786
2786
2787 try: # User namespace
2787 try: # User namespace
2788 codeobj = eval(target, self.user_ns)
2788 codeobj = eval(target, self.user_ns)
General Comments 0
You need to be logged in to leave comments. Login now