[Python-checkins] r63939 - in sandbox/trunk/ttk-gsoc/src: 2.x/ttk.py 3.x/ttk.py
guilherme.polo
python-checkins at python.org
Wed Jun 4 16:15:03 CEST 2008
Author: guilherme.polo
Date: Wed Jun 4 16:15:02 2008
New Revision: 63939
Log:
AttributeError and TypeError aren't needed to be caught anymore at _dict_from_tcltuple, since it explicitely checks for string earlier.
Modified:
sandbox/trunk/ttk-gsoc/src/2.x/ttk.py
sandbox/trunk/ttk-gsoc/src/3.x/ttk.py
Modified: sandbox/trunk/ttk-gsoc/src/2.x/ttk.py
==============================================================================
--- sandbox/trunk/ttk-gsoc/src/2.x/ttk.py (original)
+++ sandbox/trunk/ttk-gsoc/src/2.x/ttk.py Wed Jun 4 16:15:02 2008
@@ -255,8 +255,7 @@
val = map(int, val.split())
elif val.isdigit():
val = int(val)
- except (AttributeError, TypeError, ValueError):
- # leave val untouched for now
+ except ValueError: # leave val untouched for now
pass
elif val and hasattr(val, '__len__') and hasattr(val[0], 'typename'):
Modified: sandbox/trunk/ttk-gsoc/src/3.x/ttk.py
==============================================================================
--- sandbox/trunk/ttk-gsoc/src/3.x/ttk.py (original)
+++ sandbox/trunk/ttk-gsoc/src/3.x/ttk.py Wed Jun 4 16:15:02 2008
@@ -255,8 +255,7 @@
val = list(map(int, val.split()))
elif val.isdigit():
val = int(val)
- except (AttributeError, TypeError, ValueError):
- # leave val untouched for now
+ except ValueError: # leave val untouched for now
pass
elif val and hasattr(val, '__len__') and hasattr(val[0], 'typename'):
More information about the Python-checkins
mailing list