Show More
@@ -1182,11 +1182,19 b' python-profiler package from non-free.""")' | |||||
1182 | wall_st = wtime() |
|
1182 | wall_st = wtime() | |
1183 | if mode=='eval': |
|
1183 | if mode=='eval': | |
1184 | st = clock2() |
|
1184 | st = clock2() | |
1185 | out = eval(code, glob, local_ns) |
|
1185 | try: | |
|
1186 | out = eval(code, glob, local_ns) | |||
|
1187 | except: | |||
|
1188 | self.shell.showtraceback() | |||
|
1189 | return | |||
1186 | end = clock2() |
|
1190 | end = clock2() | |
1187 | else: |
|
1191 | else: | |
1188 | st = clock2() |
|
1192 | st = clock2() | |
1189 | exec(code, glob, local_ns) |
|
1193 | try: | |
|
1194 | exec(code, glob, local_ns) | |||
|
1195 | except: | |||
|
1196 | self.shell.showtraceback() | |||
|
1197 | return | |||
1190 | end = clock2() |
|
1198 | end = clock2() | |
1191 | out = None |
|
1199 | out = None | |
1192 | wall_end = wtime() |
|
1200 | wall_end = wtime() |
General Comments 0
You need to be logged in to leave comments.
Login now