Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
4ca1105a
Commit
4ca1105a
authored
Sep 24, 2002
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix two-exception except clause.
Caught by pychecker.
parent
72ae253a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
lib/python/DocumentTemplate/pDocumentTemplate.py
lib/python/DocumentTemplate/pDocumentTemplate.py
+7
-4
No files found.
lib/python/DocumentTemplate/pDocumentTemplate.py
View file @
4ca1105a
...
...
@@ -13,8 +13,8 @@
__doc__
=
'''Python implementations of document template some features
$Id: pDocumentTemplate.py,v 1.3
6 2002/08/14 22:29:53 mj
Exp $'''
__version__
=
'$Revision: 1.3
6
$'
[
11
:
-
2
]
$Id: pDocumentTemplate.py,v 1.3
7 2002/09/24 22:07:31 jeremy
Exp $'''
__version__
=
'$Revision: 1.3
7
$'
[
11
:
-
2
]
import
sys
,
types
...
...
@@ -97,8 +97,11 @@ class MultiMapping:
def
__getitem__
(
self
,
key
):
for
d
in
self
.
dicts
:
try
:
return
d
[
key
]
except
KeyError
,
AttributeError
:
pass
try
:
return
d
[
key
]
except
(
KeyError
,
AttributeError
):
# XXX How do we get an AttributeError?
pass
raise
KeyError
,
key
def
push
(
self
,
d
):
self
.
dicts
.
insert
(
0
,
d
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment