##// END OF EJS Templates
add docs and cleanup bad code style
Matthias Bussonnier -
Show More
@@ -38,6 +38,11 b" Give it a shot--you'll love it or you'll hate it."
38 38 variables (but otherwise includes the information and context given by
39 39 Verbose).
40 40
41 .. note::
42
43 The verbose mode print all variables in the stack, which means it can
44 potentially leak sensitive information like access keys, or unencryted
45 password.
41 46
42 47 Installation instructions for VerboseTB::
43 48
@@ -216,7 +221,8 b' def findsource(object):'
216 221 # the length of lines, which causes an error. Safeguard against that.
217 222 lnum = min(object.co_firstlineno, len(lines)) - 1
218 223 while lnum > 0:
219 if pmatch(lines[lnum]): break
224 if pmatch(lines[lnum]):
225 break
220 226 lnum -= 1
221 227
222 228 return lines, lnum
@@ -272,9 +278,11 b' def getargs(co):'
272 278 remain.pop()
273 279 size = count.pop()
274 280 stack[-size:] = [stack[-size:]]
275 if not remain: break
281 if not remain:
282 break
276 283 remain[-1] = remain[-1] - 1
277 if not remain: break
284 if not remain:
285 break
278 286 args[i] = stack[0]
279 287
280 288 varargs = None
General Comments 0
You need to be logged in to leave comments. Login now