All Samples(825) | Call(812) | Derive(0) | Import(13)
join(list [,sep]) -> string Return a string composed of the words in list, with intervening occurrences of sep. The default separator is a single space. (joinfields and join are synonymous)
def join(words, sep = ' '):
"""join(list [,sep]) -> string
Return a string composed of the words in list, with
intervening occurrences of sep. The default separator is a
single space.
(joinfields and join are synonymous)
"""
return sep.join(words)
def compile(self):
from string import joinfields, whitespace
import re
skipregexen = self.commentstrings + [WHITERE]
skipregex = "(" + joinfields(skipregexen, ")|(") + ")"
#print skipregex; import sys; sys.exit(1)
self.skipprog = re.compile(skipregex)
termregexen = []
termnames = []
for (term, rgex, flag, fn) in self.termlist:
fragment = "(?P<%s>%s)" % (term, rgex)
termregexen.append(fragment)
termnames.append(term)
termregex = joinfields(termregexen, "|")
src/c/o/coyotemon-HEAD/releases/2005.02-coymon-vizn21-release/sandbox/oubiwann/dbapi/gadfly/kjParser.py coyotemon(Download)
def compile(self):
from string import joinfields, whitespace
import re
skipregexen = self.commentstrings + [WHITERE]
skipregex = "(" + joinfields(skipregexen, ")|(") + ")"
#print skipregex; import sys; sys.exit(1)
self.skipprog = re.compile(skipregex)
termregexen = []
termnames = []
for (term, rgex, flag, fn) in self.termlist:
fragment = "(?P<%s>%s)" % (term, rgex)
termregexen.append(fragment)
termnames.append(term)
termregex = joinfields(termregexen, "|")
src/c/o/coyotemon-HEAD/releases/2004.11-coymon-dev/sandbox/oubiwann/dbapi/gadfly/kjParser.py coyotemon(Download)
def compile(self):
from string import joinfields, whitespace
import re
skipregexen = self.commentstrings + [WHITERE]
skipregex = "(" + joinfields(skipregexen, ")|(") + ")"
#print skipregex; import sys; sys.exit(1)
self.skipprog = re.compile(skipregex)
termregexen = []
termnames = []
for (term, rgex, flag, fn) in self.termlist:
fragment = "(?P<%s>%s)" % (term, rgex)
termregexen.append(fragment)
termnames.append(term)
termregex = joinfields(termregexen, "|")
src/c/o/coyotemon-HEAD/trunk/sandbox/oubiwann/dbapi/gadfly/kjParser.py coyotemon(Download)
def compile(self):
from string import joinfields, whitespace
import re
skipregexen = self.commentstrings + [WHITERE]
skipregex = "(" + joinfields(skipregexen, ")|(") + ")"
#print skipregex; import sys; sys.exit(1)
self.skipprog = re.compile(skipregex)
termregexen = []
termnames = []
for (term, rgex, flag, fn) in self.termlist:
fragment = "(?P<%s>%s)" % (term, rgex)
termregexen.append(fragment)
termnames.append(term)
termregex = joinfields(termregexen, "|")
src/c/o/coyotemon-HEAD/sandbox/oubiwann/dbapi/gadfly/kjParser.py coyotemon(Download)
def compile(self):
from string import joinfields, whitespace
import re
skipregexen = self.commentstrings + [WHITERE]
skipregex = "(" + joinfields(skipregexen, ")|(") + ")"
#print skipregex; import sys; sys.exit(1)
self.skipprog = re.compile(skipregex)
termregexen = []
termnames = []
for (term, rgex, flag, fn) in self.termlist:
fragment = "(?P<%s>%s)" % (term, rgex)
termregexen.append(fragment)
termnames.append(term)
termregex = joinfields(termregexen, "|")
src/z/o/zope.rdb-3.5.0/src/zope/rdb/gadfly/kjParser.py zope.rdb(Download)
def compile(self):
from string import joinfields, whitespace
import re
skipregexen = self.commentstrings + [WHITERE]
skipregex = "(" + joinfields(skipregexen, ")|(") + ")"
#print skipregex; import sys; sys.exit(1)
self.skipprog = re.compile(skipregex)
termregexen = []
termnames = []
for (term, rgex, flag, fn) in self.termlist:
fragment = "(?P<%s>%s)" % (term, rgex)
termregexen.append(fragment)
termnames.append(term)
termregex = joinfields(termregexen, "|")
src/i/n/interwiki-HEAD/wikigateway/trunk/gateways/dav/DAV/utils.py interwiki(Download)
from xml.dom import Node from xml.dom import NodeIterator, NodeFilter from string import lower, split, atoi, joinfields import urlparse from StringIO import StringIO
def get_uriparentpath(uri):
""" extract the uri path and remove the last element """
up=urlparse.urlparse(uri)
return joinfields(split(up[2],"/")[:-1],"/")
def get_urifilename(uri):
""" extract the uri path and return the last element """
up=urlparse.urlparse(uri)
return split(up[2],"/")[-1]
def get_parenturi(uri):
""" return the parent of the given resource"""
up=urlparse.urlparse(uri)
np=joinfields(split(up[2],"/")[:-1],"/")
src/i/n/interwiki-HEAD/wikigateway/trunk/gateways/dav/data.py interwiki(Download)
import urlparse import os import time from string import joinfields, split, lower from DAV.constants import COLLECTION, OBJECT from DAV.errors import *
def local2uri(self,filename): """ map local filename to URI """ pnum=len(split(self.DIR,"/")) parts=split(filename,"/")[pnum:] sparts="/"+joinfields(parts,"/") #uri=urlparse.urljoin(self.BASEURI,sparts) uri=self.BASEURI + sparts
src/p/y/PyWebDAV-0.9.4/DAV/utils.py PyWebDAV(Download)
from xml.dom import minidom import urlparse from string import lower, split, atoi, joinfields from StringIO import StringIO from constants import RT_ALLPROP, RT_PROPNAME, RT_PROP
def get_uriparentpath(uri):
""" extract the uri path and remove the last element """
up=urlparse.urlparse(uri)
return joinfields(split(up[2],"/")[:-1],"/")
def get_urifilename(uri):
""" extract the uri path and return the last element """
up=urlparse.urlparse(uri)
return split(up[2],"/")[-1]
def get_parenturi(uri):
""" return the parent of the given resource"""
up=urlparse.urlparse(uri)
np=joinfields(split(up[2],"/")[:-1],"/")
src/p/y/PyWebDAV-0.9.4/DAVServer/fshandler.py PyWebDAV(Download)
import urlparse import os import time from string import joinfields, split, lower import logging import types import shutil
def local2uri(self,filename):
""" map local filename to self.baseuri """
pnum=len(split(self.directory.replace("\\","/"),"/"))
parts=split(filename.replace("\\","/"),"/")[pnum:]
sparts="/"+joinfields(parts,"/")
uri=urlparse.urljoin(self.baseuri,sparts)
1 | 2 Next