Skip to content

Commit 2af6961

Browse files
author
Richard Jones
committed
fix for incorrect except: syntax, issue2550661
1 parent 21668ac commit 2af6961

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

doc/acknowledgements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ Martin Uzak,
133133
Darryl VanDorp,
134134
J Vickroy,
135135
Timothy J. Warren,
136+
Jakub Wilk,
136137
William (Wilk),
137138
Tue Wennerberg,
138139
Matt Wilbert,

roundup/anypy/sets_.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
try:
2626
set = set # built-in since Python 2.4
27-
except NameError, TypeError:
27+
except (NameError, TypeError):
2828
from sets import Set as set # deprecated as of Python 2.6
2929

3030
# vim: ts=8 sts=4 sw=4 si et

roundup/hyperdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1101,7 +1101,7 @@ def get_transitive_prop(self, propname_path, default = None):
11011101
for k in propname_path.split('.'):
11021102
try:
11031103
prop = props[k]
1104-
except KeyError, TypeError:
1104+
except (KeyError, TypeError):
11051105
return default
11061106
cl = getattr(prop, 'classname', None)
11071107
props = None

0 commit comments

Comments
 (0)