mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Removed the traceback output in non-verbose mode
This commit is contained in:
parent
5d6de256d5
commit
1d8b7583dc
2 changed files with 2 additions and 109 deletions
|
@ -23,7 +23,8 @@ for t in tests:
|
|||
print '=== Syntax error:', t
|
||||
except:
|
||||
print '*** Unexpected error ***'
|
||||
traceback.print_exc(file=sys.stdout)
|
||||
if verbose:
|
||||
traceback.print_exc(file=sys.stdout)
|
||||
else:
|
||||
try:
|
||||
result=obj.search(s)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue