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
7dc3d1c0
Commit
7dc3d1c0
authored
Feb 27, 2003
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove use of apply(); apply() generates a PendingDeprecationWarning when
used with Python 2.3.
parent
d4dee996
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
lib/python/DocumentTemplate/DT_Let.py
lib/python/DocumentTemplate/DT_Let.py
+1
-1
lib/python/DocumentTemplate/DT_Util.py
lib/python/DocumentTemplate/DT_Util.py
+6
-6
No files found.
lib/python/DocumentTemplate/DT_Let.py
View file @
7dc3d1c0
...
...
@@ -106,5 +106,5 @@ def parse_let_params(text,
result
.
append
((
name
,
value
))
text
=
text
[
l
:].
strip
()
if
text
:
return
apply
(
parse_let_params
,(
text
,
result
,
tag
),
parms
)
if
text
:
return
parse_let_params
(
text
,
result
,
tag
,
**
parms
)
else
:
return
result
lib/python/DocumentTemplate/DT_Util.py
View file @
7dc3d1c0
...
...
@@ -10,8 +10,8 @@
# FOR A PARTICULAR PURPOSE
#
##############################################################################
'''$Id: DT_Util.py,v 1.8
8 2002/08/14 22:29:52 mj
Exp $'''
__version__
=
'$Revision: 1.8
8
$'
[
11
:
-
2
]
'''$Id: DT_Util.py,v 1.8
9 2003/02/27 17:31:27 fdrake
Exp $'''
__version__
=
'$Revision: 1.8
9
$'
[
11
:
-
2
]
import
re
,
os
from
html_quote
import
html_quote
,
ustr
# for import by other modules, dont remove!
...
...
@@ -150,7 +150,7 @@ def namespace(self, **kw):
incorrect "self" argument. It could be caused by a product which
is not yet compatible with this version of Zope. The traceback
information may contain more details.)'''
return
apply
(
self
,
(),
kw
)
return
self
(
**
kw
)
d
[
'namespace'
]
=
namespace
...
...
@@ -399,14 +399,14 @@ def parse_params(text,
'Invalid attribute name, "%s"'
%
name
,
tag
)
else
:
result
[
''
]
=
name
return
apply
(
parse_params
,(
text
[
l
:],
result
),
parms
)
return
parse_params
(
text
[
l
:],
result
,
**
parms
)
elif
mo_unq
:
name
=
mo_unq
.
group
(
2
)
l
=
len
(
mo_unq
.
group
(
1
))
if
result
:
raise
ParseError
,
(
'Invalid attribute name, "%s"'
%
name
,
tag
)
else
:
result
[
''
]
=
name
return
apply
(
parse_params
,(
text
[
l
:],
result
),
parms
)
return
parse_params
(
text
[
l
:],
result
,
**
parms
)
else
:
if
not
text
or
not
text
.
strip
():
return
result
raise
ParseError
,
(
'invalid parameter: "%s"'
%
text
,
tag
)
...
...
@@ -424,5 +424,5 @@ def parse_params(text,
result
[
name
]
=
value
text
=
text
[
l
:].
strip
()
if
text
:
return
apply
(
parse_params
,(
text
,
result
),
parms
)
if
text
:
return
parse_params
(
text
,
result
,
**
parms
)
else
:
return
result
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