##// END OF EJS Templates
Run darker as instructed
satoru -
Show More
@@ -213,7 +213,9 b' class ExecutionInfo(object):'
213 raw_cell = (
213 raw_cell = (
214 (self.raw_cell[:50] + "..") if len(self.raw_cell) > 50 else self.raw_cell
214 (self.raw_cell[:50] + "..") if len(self.raw_cell) > 50 else self.raw_cell
215 )
215 )
216 return '<%s object at %x, raw_cell="%s" store_history=%s silent=%s shell_futures=%s cell_id=%s>' % (
216 return (
217 '<%s object at %x, raw_cell="%s" store_history=%s silent=%s shell_futures=%s cell_id=%s>'
218 % (
217 name,
219 name,
218 id(self),
220 id(self),
219 raw_cell,
221 raw_cell,
@@ -222,6 +224,7 b' class ExecutionInfo(object):'
222 self.shell_futures,
224 self.shell_futures,
223 self.cell_id,
225 self.cell_id,
224 )
226 )
227 )
225
228
226
229
227 class ExecutionResult(object):
230 class ExecutionResult(object):
1 NO CONTENT: modified file
NO CONTENT: modified file
@@ -85,11 +85,11 b' def get_py_filename(name):'
85 name = os.path.expanduser(name)
85 name = os.path.expanduser(name)
86 if os.path.isfile(name):
86 if os.path.isfile(name):
87 return name
87 return name
88 if not name.endswith('.py'):
88 if not name.endswith(".py"):
89 py_name = name + '.py'
89 py_name = name + ".py"
90 if os.path.isfile(py_name):
90 if os.path.isfile(py_name):
91 return py_name
91 return py_name
92 raise IOError('File `%r` not found.' % name)
92 raise IOError("File `%r` not found." % name)
93
93
94
94
95 def filefind(filename: str, path_dirs=None) -> str:
95 def filefind(filename: str, path_dirs=None) -> str:
General Comments 0
You need to be logged in to leave comments. Login now