commit | ba9ac5b5c42a9bba54942211a3b00a1c3ce7bb23 | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Wed May 20 10:33:40 2015 +0300 |
committer | Serhiy Storchaka <storchaka@gmail.com> | Wed May 20 10:33:40 2015 +0300 |
tree | 84491ee8c5be973ab45551b7319bb71416946827 | |
parent | 492f0277933fd5714762a99ec99fd7f97d99866a [diff] [blame] |
Issue #16261: Converted some bare except statements to except statements with specified exception type. Original patch by Ramchandra Apte.
diff --git a/Tools/unicode/gencodec.py b/Tools/unicode/gencodec.py index 98b3975..4c21469 100644 --- a/Tools/unicode/gencodec.py +++ b/Tools/unicode/gencodec.py
@@ -127,7 +127,7 @@ return 'None' try: len(t) - except: + except TypeError: return '0x%0*X' % (precision, t) try: return '(' + ', '.join(['0x%0*X' % (precision, item)