All Samples(3712) | Call(3531) | Derive(0) | Import(181)
lower(s) -> string Return a copy of the string s converted to lowercase.
def lower(s):
"""lower(s) -> string
Return a copy of the string s converted to lowercase.
"""
return s.lower()
def run(format, VERBOSE=0):
formats = string.split(format, ',')
for i in range(0, len(formats)):
formats[i] == string.lower(string.strip(formats[i]))
allfiles = glob.glob('*.py')
allfiles.sort()
for fn in allfiles:
src/p/r/productiontrack-HEAD/pt1/tools/reportlab/graphics/samples/runall.py productiontrack(Download)
def run(format, VERBOSE=0):
formats = string.split(format, ',')
for i in range(0, len(formats)):
formats[i] == string.lower(string.strip(formats[i]))
allfiles = glob.glob('*.py')
allfiles.sort()
for fn in allfiles:
src/p/r/productiontrack-HEAD/tools/reportlab/graphics/samples/runall.py productiontrack(Download)
def run(format, VERBOSE=0):
formats = string.split(format, ',')
for i in range(0, len(formats)):
formats[i] == string.lower(string.strip(formats[i]))
allfiles = glob.glob('*.py')
allfiles.sort()
for fn in allfiles:
src/c/l/clearsilver-0.10.1/clearsilver/python/examples/base/sgmllib.py clearsilver(Download)
if not match:
return -1
tag, data = match.group(1, 2)
tag = string.lower(tag)
self.finish_shorttag(tag, data)
k = match.end(0)
return k
if not match:
raise RuntimeError, 'unexpected call to parse_starttag'
k = match.end(0)
tag = string.lower(rawdata[i+1:k])
self.lasttag = tag
while k < j:
match = attrfind.match(rawdata, k)
elif attrvalue[:1] == '\'' == attrvalue[-1:] or \
attrvalue[:1] == '"' == attrvalue[-1:]:
attrvalue = attrvalue[1:-1]
attrs.append((string.lower(attrname), attrvalue))
k = match.end(0)
if rawdata[j] == '>':
j = j+1
def parse_endtag(self, i):
rawdata = self.rawdata
match = endbracket.search(rawdata, i+1)
if not match:
return -1
j = match.start(0)
tag = string.lower(string.strip(rawdata[i+2:j]))
src/w/s/wsfuzzer-HEAD/trunk/WSFuzzer/reportlab/graphics/samples/runall.py wsfuzzer(Download)
def run(format, VERBOSE=0):
formats = string.split(format, ',')
for i in range(0, len(formats)):
formats[i] == string.lower(string.strip(formats[i]))
allfiles = glob.glob('*.py')
allfiles.sort()
for fn in allfiles:
src/w/s/wsfuzzer-HEAD/WSFuzzer/reportlab/graphics/samples/runall.py wsfuzzer(Download)
def run(format, VERBOSE=0):
formats = string.split(format, ',')
for i in range(0, len(formats)):
formats[i] == string.lower(string.strip(formats[i]))
allfiles = glob.glob('*.py')
allfiles.sort()
for fn in allfiles:
src/m/w/mwlib.ext-0.12.3/upstream-src/src/reportlab/graphics/samples/runall.py mwlib.ext(Download)
def run(format, VERBOSE=0):
formats = string.split(format, ',')
for i in range(0, len(formats)):
formats[i] == string.lower(string.strip(formats[i]))
allfiles = glob.glob('*.py')
allfiles.sort()
for fn in allfiles:
src/p/o/postmod-HEAD/trunk/postmod/sample_exporter.py postmod(Download)
if self.makeUpper:
fname = string.upper(fname)
if self.makeLower:
fname = string.lower(fname)
fname = filex.ensureValid(fname)
src/r/e/reportlab-2.5/src/reportlab/graphics/samples/runall.py reportlab(Download)
def run(format, VERBOSE=0):
formats = string.split(format, ',')
for i in range(0, len(formats)):
formats[i] == string.lower(string.strip(formats[i]))
allfiles = glob.glob('*.py')
allfiles.sort()
for fn in allfiles:
src/c/l/clearsilver-0.10.1/clearsilver/python/examples/base/SafeHtml.py clearsilver(Download)
def cleanup_attrs (self, tag, attrs):
new_attrs = []
tag = string.lower(tag)
if self._new_window and tag == "a":
new_attrs.append(('target', '_blank'))
for name, value in attrs:
name = string.lower(name)
if name[:2] == "on": continue ## skip any javascript events
if string.lower(value)[:11] == "javascript:": continue
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 Next