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