Commit 830dec33 authored by Andreas Jung's avatar Andreas Jung

replaced string calls by string methods

parent 726d61b2
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment