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
830dec33
Commit
830dec33
authored
Nov 29, 2001
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replaced string calls by string methods
parent
726d61b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
lib/python/webdav/EtagSupport.py
lib/python/webdav/EtagSupport.py
+5
-5
No files found.
lib/python/webdav/EtagSupport.py
View file @
830dec33
...
...
@@ -11,9 +11,9 @@
#
##############################################################################
__version__
=
"$Revision: 1.4 $"
[
11
:
-
2
]
__version__
=
"$Revision: 1.5 $"
[
11
:
-
2
]
from
string
import
capitalize
,
split
,
join
,
strip
import
time
,
Interface
,
re
class
EtagBaseInterface
(
Interface
.
Base
):
...
...
@@ -85,12 +85,12 @@ class EtagSupport:
matchlist
=
REQUEST
.
get_header
(
header
)
if
matchlist
is
None
:
# capitalize the words of the header, splitting on '-'
tmp
=
map
(
capitalize
,
split
(
header
,
'-'
))
tmp
=
join
(
tmp
,
'-'
)
tmp
=
[
x
.
capitalize
()
for
x
in
header
.
split
(
'-'
)]
tmp
=
'-'
.
join
(
tmp
)
matchlist
=
REQUEST
.
get_header
(
tmp
)
if
matchlist
is
None
:
return
None
matchlist
=
map
(
strip
,
split
(
matchlist
,
','
))
matchlist
=
[
x
.
strip
()
for
x
in
matchlist
.
split
(
','
)]
r
=
[]
for
match
in
matchlist
:
...
...
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