mirror of
https://github.com/python/cpython.git
synced 2025-10-08 08:01:55 +00:00
Issue #16261: Converted some bare except statements to except statements
with specified exception type. Original patch by Ramchandra Apte.
This commit is contained in:
parent
492f027793
commit
ba9ac5b5c4
7 changed files with 13 additions and 13 deletions
|
@ -127,7 +127,7 @@ def hexrepr(t, precision=4):
|
|||
return 'None'
|
||||
try:
|
||||
len(t)
|
||||
except:
|
||||
except TypeError:
|
||||
return '0x%0*X' % (precision, t)
|
||||
try:
|
||||
return '(' + ', '.join(['0x%0*X' % (precision, item)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue