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_ |
|
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_ |
|
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