Show More
@@ -17,8 +17,6 b' from __future__ import print_function' | |||
|
17 | 17 | import sys |
|
18 | 18 | import tempfile |
|
19 | 19 | |
|
20 | from IPython.external.Itpl import itpl, printpl | |
|
21 | ||
|
22 | 20 | #----------------------------------------------------------------------------- |
|
23 | 21 | # Code |
|
24 | 22 | #----------------------------------------------------------------------------- |
@@ -268,12 +266,13 b' class NLprinter:' | |||
|
268 | 266 | |
|
269 | 267 | for idx in range(start,stop): |
|
270 | 268 | elem = lst[idx] |
|
269 | newpos = pos + str(idx) | |
|
271 | 270 | if type(elem)==type([]): |
|
272 | 271 | self.depth += 1 |
|
273 |
self.__call__(elem, |
|
|
272 | self.__call__(elem, newpos+",", **kw) | |
|
274 | 273 | self.depth -= 1 |
|
275 | 274 | else: |
|
276 |
print |
|
|
275 | print(kw['indent']*self.depth + newpos + kw["sep"] + repr(elem)) | |
|
277 | 276 | |
|
278 | 277 | nlprint = NLprinter() |
|
279 | 278 |
General Comments 0
You need to be logged in to leave comments.
Login now