Show More
@@ -229,7 +229,6 b' class KernelMagics(Magics):' | |||||
229 | if not arg_s: |
|
229 | if not arg_s: | |
230 | raise UsageError('Missing filename.') |
|
230 | raise UsageError('Missing filename.') | |
231 |
|
231 | |||
232 | cont = open(arg_s).read() |
|
|||
233 | if arg_s.endswith('.py'): |
|
232 | if arg_s.endswith('.py'): | |
234 | cont = self.shell.pycolorize(openpy.read_py_file(arg_s, skip_encoding_cookie=False)) |
|
233 | cont = self.shell.pycolorize(openpy.read_py_file(arg_s, skip_encoding_cookie=False)) | |
235 | else: |
|
234 | else: |
General Comments 0
You need to be logged in to leave comments.
Login now