u(p) [count] Move the current frame count (default one) levels up in the stack trace (to an older frame).
(self, arg)
| 942 | self.lineno = None |
| 943 | |
| 944 | def do_up(self, arg): |
| 945 | """u(p) [count] |
| 946 | Move the current frame count (default one) levels up in the |
| 947 | stack trace (to an older frame). |
| 948 | """ |
| 949 | if self.curindex == 0: |
| 950 | self.error('Oldest frame') |
| 951 | return |
| 952 | try: |
| 953 | count = int(arg or 1) |
| 954 | except ValueError: |
| 955 | self.error('Invalid frame count (%s)' % arg) |
| 956 | return |
| 957 | if count < 0: |
| 958 | newframe = 0 |
| 959 | else: |
| 960 | newframe = max(0, self.curindex - count) |
| 961 | self._select_frame(newframe) |
| 962 | do_u = do_up |
| 963 | |
| 964 | def do_down(self, arg): |
nothing calls this directly
no test coverage detected