rem
stringlengths
1
322k
add
stringlengths
0
2.05M
context
stringlengths
4
228k
meta
stringlengths
156
215
opts, args = getopt.getopt(sys.argv[1:], 'Rd:m:nqr:t:vx')
opts, args = getopt.getopt(sys.argv[1:], 'Rd:m:nqr:t:vxa')
def main(): checkext = CHECKEXT verbose = VERBOSE maxpage = MAXPAGE roundsize = ROUNDSIZE dumpfile = DUMPFILE restart = 0 norun = 0 try: # Begin SLB 2/24/99: Added -t option here. opts, args = getopt.getopt(sys.argv[1:], 'Rd:m:nqr:t:vx') # End SLB 2/24/99 except getopt.error, msg: sys.stdout = sys.stderr print msg p...
f97eecccb714a71cf5a1ca9399cd9c579014a5b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f97eecccb714a71cf5a1ca9399cd9c579014a5b9/wcnew.py
if o == '-t': extra_roots.append(a)
if o == '-t': extra_roots.append(a) if o == '-a': nonames = not nonames
def main(): checkext = CHECKEXT verbose = VERBOSE maxpage = MAXPAGE roundsize = ROUNDSIZE dumpfile = DUMPFILE restart = 0 norun = 0 try: # Begin SLB 2/24/99: Added -t option here. opts, args = getopt.getopt(sys.argv[1:], 'Rd:m:nqr:t:vx') # End SLB 2/24/99 except getopt.error, msg: sys.stdout = sys.stderr print msg p...
f97eecccb714a71cf5a1ca9399cd9c579014a5b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f97eecccb714a71cf5a1ca9399cd9c579014a5b9/wcnew.py
maxpage=maxpage, roundsize=roundsize)
maxpage=maxpage, roundsize=roundsize, nonames=nonames )
def main(): checkext = CHECKEXT verbose = VERBOSE maxpage = MAXPAGE roundsize = ROUNDSIZE dumpfile = DUMPFILE restart = 0 norun = 0 try: # Begin SLB 2/24/99: Added -t option here. opts, args = getopt.getopt(sys.argv[1:], 'Rd:m:nqr:t:vx') # End SLB 2/24/99 except getopt.error, msg: sys.stdout = sys.stderr print msg p...
f97eecccb714a71cf5a1ca9399cd9c579014a5b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f97eecccb714a71cf5a1ca9399cd9c579014a5b9/wcnew.py
for root in extra_roots: if root[-1] != "/": root = root + "/" c.addroot(root)
for root in extra_roots: if root[-1] != "/": root = root + "/" c.addroot(root, add_to_do = 0)
def main(): checkext = CHECKEXT verbose = VERBOSE maxpage = MAXPAGE roundsize = ROUNDSIZE dumpfile = DUMPFILE restart = 0 norun = 0 try: # Begin SLB 2/24/99: Added -t option here. opts, args = getopt.getopt(sys.argv[1:], 'Rd:m:nqr:t:vx') # End SLB 2/24/99 except getopt.error, msg: sys.stdout = sys.stderr print msg p...
f97eecccb714a71cf5a1ca9399cd9c579014a5b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f97eecccb714a71cf5a1ca9399cd9c579014a5b9/wcnew.py
self.name_table = {}
self.name_table = {}
def reset(self): self.roots = [] self.todo = {} self.done = {} self.bad = {}
f97eecccb714a71cf5a1ca9399cd9c579014a5b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f97eecccb714a71cf5a1ca9399cd9c579014a5b9/wcnew.py
def reset(self): self.roots = [] self.todo = {} self.done = {} self.bad = {}
f97eecccb714a71cf5a1ca9399cd9c579014a5b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f97eecccb714a71cf5a1ca9399cd9c579014a5b9/wcnew.py
def note(self, level, format, *args): if self.verbose > level: if args: format = format%args self.message(format)
f97eecccb714a71cf5a1ca9399cd9c579014a5b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f97eecccb714a71cf5a1ca9399cd9c579014a5b9/wcnew.py
def addroot(self, root):
def addroot(self, root, add_to_do = 1):
def addroot(self, root): if root not in self.roots: troot = root scheme, netloc, path, params, query, fragment = \ urlparse.urlparse(root) i = string.rfind(path, "/") + 1 if 0 < i < len(path): path = path[:i] troot = urlparse.urlunparse((scheme, netloc, path, params, query, fragment)) self.roots.append(troot) self.addr...
f97eecccb714a71cf5a1ca9399cd9c579014a5b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f97eecccb714a71cf5a1ca9399cd9c579014a5b9/wcnew.py
self.newlink((root, ""), ("<root>", root))
if add_to_do: self.newlink((root, ""), ("<root>", root))
def addroot(self, root): if root not in self.roots: troot = root scheme, netloc, path, params, query, fragment = \ urlparse.urlparse(root) i = string.rfind(path, "/") + 1 if 0 < i < len(path): path = path[:i] troot = urlparse.urlunparse((scheme, netloc, path, params, query, fragment)) self.roots.append(troot) self.addr...
f97eecccb714a71cf5a1ca9399cd9c579014a5b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f97eecccb714a71cf5a1ca9399cd9c579014a5b9/wcnew.py
for url, rawlink, msg in triples:
for url, rawlink, msg in triples:
def report_errors(self): if not self.bad: self.message("\nNo errors") return self.message("\nError Report:") sources = self.errors.keys() sources.sort() for source in sources: triples = self.errors[source] self.message("") if len(triples) > 1: self.message("%d Errors in %s", len(triples), source) else: self.message("Er...
f97eecccb714a71cf5a1ca9399cd9c579014a5b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f97eecccb714a71cf5a1ca9399cd9c579014a5b9/wcnew.py
self.format_url(url), s, msg)
self.format_url(url), s, msg)
def report_errors(self): if not self.bad: self.message("\nNo errors") return self.message("\nError Report:") sources = self.errors.keys() sources.sort() for source in sources: triples = self.errors[source] self.message("") if len(triples) > 1: self.message("%d Errors in %s", len(triples), source) else: self.message("Er...
f97eecccb714a71cf5a1ca9399cd9c579014a5b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f97eecccb714a71cf5a1ca9399cd9c579014a5b9/wcnew.py
def dopage(self, url_pair):
f97eecccb714a71cf5a1ca9399cd9c579014a5b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f97eecccb714a71cf5a1ca9399cd9c579014a5b9/wcnew.py
" from", self.todo[url_pair])
" from", self.todo[url_pair])
def dopage(self, url_pair):
f97eecccb714a71cf5a1ca9399cd9c579014a5b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f97eecccb714a71cf5a1ca9399cd9c579014a5b9/wcnew.py
url, local_fragment = url_pair self.name_table[url] = page if local_fragment and local_fragment not in page.getnames(): self.setbad(url_pair, ("Missing name anchor `%s'" % local_fragment)) for info in page.getlinkinfos():
self.name_table[url] = page if local_fragment and local_fragment not in page.getnames(): self.setbad(url_pair, ("Missing name anchor `%s'" % local_fragment)) for info in page.getlinkinfos():
def dopage(self, url_pair):
f97eecccb714a71cf5a1ca9399cd9c579014a5b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f97eecccb714a71cf5a1ca9399cd9c579014a5b9/wcnew.py
def dopage(self, url_pair):
f97eecccb714a71cf5a1ca9399cd9c579014a5b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f97eecccb714a71cf5a1ca9399cd9c579014a5b9/wcnew.py
else: self.name_table[url_pair[0]] = None
else: self.name_table[url_pair[0]] = None
def dopage(self, url_pair):
f97eecccb714a71cf5a1ca9399cd9c579014a5b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f97eecccb714a71cf5a1ca9399cd9c579014a5b9/wcnew.py
def dopage(self, url_pair):
f97eecccb714a71cf5a1ca9399cd9c579014a5b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f97eecccb714a71cf5a1ca9399cd9c579014a5b9/wcnew.py
self.done[url].append(origin)
if origin not in self.done[url]: self.done[url].append(origin)
def newdonelink(self, url, origin): self.done[url].append(origin)
f97eecccb714a71cf5a1ca9399cd9c579014a5b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f97eecccb714a71cf5a1ca9399cd9c579014a5b9/wcnew.py
if self.bad.has_key(url): source, rawlink = origin triple = url, rawlink, self.bad[url] self.seterror(source, triple)
def newdonelink(self, url, origin): self.done[url].append(origin)
f97eecccb714a71cf5a1ca9399cd9c579014a5b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f97eecccb714a71cf5a1ca9399cd9c579014a5b9/wcnew.py
def newtodolink(self, url, origin):
f97eecccb714a71cf5a1ca9399cd9c579014a5b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f97eecccb714a71cf5a1ca9399cd9c579014a5b9/wcnew.py
self.todo[url].append(origin)
if origin not in self.todo[url]: self.todo[url].append(origin)
def newtodolink(self, url, origin):
f97eecccb714a71cf5a1ca9399cd9c579014a5b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f97eecccb714a71cf5a1ca9399cd9c579014a5b9/wcnew.py
def newtodolink(self, url, origin):
f97eecccb714a71cf5a1ca9399cd9c579014a5b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f97eecccb714a71cf5a1ca9399cd9c579014a5b9/wcnew.py
def format_url(self, url): link, fragment = url if fragment: return link + " else: return link
def format_url(self, url): link, fragment = url if fragment: return link + " else: return link
def format_url(self, url):
f97eecccb714a71cf5a1ca9399cd9c579014a5b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f97eecccb714a71cf5a1ca9399cd9c579014a5b9/wcnew.py
def inroots(self, url): for root in self.roots: if url[:len(root)] == root: return self.isallowed(root, url) return 0
f97eecccb714a71cf5a1ca9399cd9c579014a5b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f97eecccb714a71cf5a1ca9399cd9c579014a5b9/wcnew.py
url, fragment = url_pair if self.name_table.has_key(url): return self.name_table[url]
url, fragment = url_pair if self.name_table.has_key(url): return self.name_table[url]
def getpage(self, url_pair):
f97eecccb714a71cf5a1ca9399cd9c579014a5b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f97eecccb714a71cf5a1ca9399cd9c579014a5b9/wcnew.py
def getpage(self, url_pair):
f97eecccb714a71cf5a1ca9399cd9c579014a5b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f97eecccb714a71cf5a1ca9399cd9c579014a5b9/wcnew.py
def getpage(self, url_pair):
f97eecccb714a71cf5a1ca9399cd9c579014a5b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f97eecccb714a71cf5a1ca9399cd9c579014a5b9/wcnew.py
url, fragment = url_pair
url, fragment = url_pair
def readhtml(self, url_pair):
f97eecccb714a71cf5a1ca9399cd9c579014a5b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f97eecccb714a71cf5a1ca9399cd9c579014a5b9/wcnew.py
url, fragment = url_pair
url, fragment = url_pair
def openhtml(self, url_pair):
f97eecccb714a71cf5a1ca9399cd9c579014a5b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f97eecccb714a71cf5a1ca9399cd9c579014a5b9/wcnew.py
url, fragment = url_pair
url, fragment = url_pair
def openpage(self, url_pair):
f97eecccb714a71cf5a1ca9399cd9c579014a5b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f97eecccb714a71cf5a1ca9399cd9c579014a5b9/wcnew.py
def setbad(self, url, msg): if self.bad.has_key(url) and self.bad[url] == msg: self.note(0, "(Seen this error before)") return self.bad[url] = msg self.changed = 1 self.markerror(url)
f97eecccb714a71cf5a1ca9399cd9c579014a5b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f97eecccb714a71cf5a1ca9399cd9c579014a5b9/wcnew.py
if triple not in self.errors[url]: self.errors[url].append(triple)
if triple not in self.errors[url]: self.errors[url].append(triple)
def seterror(self, url, triple): try: # Begin SLB 2/24/99: Because of the way the # URLs are now processed, I need to check to make # sure the URL hasn't been entered in the error list. # The first element of the triple here is a (URL, fragment) # pair, but the URL key is not, since it's from the # list of origins. if...
f97eecccb714a71cf5a1ca9399cd9c579014a5b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f97eecccb714a71cf5a1ca9399cd9c579014a5b9/wcnew.py
size = len(self.text)
size = len(self.text)
def __init__(self, text, url, verbose=VERBOSE, maxpage=MAXPAGE, checker=None): self.text = text self.url = url self.verbose = verbose self.maxpage = maxpage self.checker = checker
f97eecccb714a71cf5a1ca9399cd9c579014a5b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f97eecccb714a71cf5a1ca9399cd9c579014a5b9/wcnew.py
return
return
def __init__(self, text, url, verbose=VERBOSE, maxpage=MAXPAGE, checker=None): self.text = text self.url = url self.verbose = verbose self.maxpage = maxpage self.checker = checker
f97eecccb714a71cf5a1ca9399cd9c579014a5b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f97eecccb714a71cf5a1ca9399cd9c579014a5b9/wcnew.py
checker=self.checker)
checker=self.checker)
def __init__(self, text, url, verbose=VERBOSE, maxpage=MAXPAGE, checker=None): self.text = text self.url = url self.verbose = verbose self.maxpage = maxpage self.checker = checker
f97eecccb714a71cf5a1ca9399cd9c579014a5b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f97eecccb714a71cf5a1ca9399cd9c579014a5b9/wcnew.py
def __init__(self, text, url, verbose=VERBOSE, maxpage=MAXPAGE, checker=None): self.text = text self.url = url self.verbose = verbose self.maxpage = maxpage self.checker = checker
f97eecccb714a71cf5a1ca9399cd9c579014a5b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f97eecccb714a71cf5a1ca9399cd9c579014a5b9/wcnew.py
return self.parser.names
return self.parser.names
def getnames(self):
f97eecccb714a71cf5a1ca9399cd9c579014a5b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f97eecccb714a71cf5a1ca9399cd9c579014a5b9/wcnew.py
if not self.parser: return []
if not self.parser: return []
def getlinkinfos(self):
f97eecccb714a71cf5a1ca9399cd9c579014a5b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f97eecccb714a71cf5a1ca9399cd9c579014a5b9/wcnew.py
fragment = t[-1]
fragment = t[-1]
def getlinkinfos(self):
f97eecccb714a71cf5a1ca9399cd9c579014a5b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f97eecccb714a71cf5a1ca9399cd9c579014a5b9/wcnew.py
infos.append((link, rawlink, fragment))
infos.append((link, rawlink, fragment))
def getlinkinfos(self):
f97eecccb714a71cf5a1ca9399cd9c579014a5b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f97eecccb714a71cf5a1ca9399cd9c579014a5b9/wcnew.py
if path[-1] != os.sep: url = url + '/'
def open_file(self, url): path = urllib.url2pathname(urllib.unquote(url)) if path[-1] != os.sep: url = url + '/' if os.path.isdir(path): indexpath = os.path.join(path, "index.html") if os.path.exists(indexpath): return self.open_file(url + "index.html") try: names = os.listdir(path) except os.error, msg: raise IOError,...
f97eecccb714a71cf5a1ca9399cd9c579014a5b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f97eecccb714a71cf5a1ca9399cd9c579014a5b9/wcnew.py
return urllib.FancyURLopener.open_file(self, path)
return urllib.FancyURLopener.open_file(self, url)
def open_file(self, url): path = urllib.url2pathname(urllib.unquote(url)) if path[-1] != os.sep: url = url + '/' if os.path.isdir(path): indexpath = os.path.join(path, "index.html") if os.path.exists(indexpath): return self.open_file(url + "index.html") try: names = os.listdir(path) except os.error, msg: raise IOError,...
f97eecccb714a71cf5a1ca9399cd9c579014a5b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f97eecccb714a71cf5a1ca9399cd9c579014a5b9/wcnew.py
self.names = [] self.url = url
self.names = [] self.url = url
def __init__(self, url, verbose=VERBOSE, checker=None): self.myverbose = verbose # now unused self.checker = checker self.base = None self.links = {}
f97eecccb714a71cf5a1ca9399cd9c579014a5b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f97eecccb714a71cf5a1ca9399cd9c579014a5b9/wcnew.py
for name, value in attributes: if name == "name": if value in self.names: self.checker.message("WARNING: duplicate name %s in %s", value, self.url) else: self.names.append(value) break
for name, value in attributes: if name == "name": if value in self.names: self.checker.message("WARNING: duplicate name %s in %s", value, self.url) else: self.names.append(value) break
def start_a(self, attributes): self.link_attr(attributes, 'href')
f97eecccb714a71cf5a1ca9399cd9c579014a5b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f97eecccb714a71cf5a1ca9399cd9c579014a5b9/wcnew.py
(1, Complex(0,10), 'TypeError'),
(1, Complex(0,10), 1),
def test(): testsuite = { 'a+b': [ (1, 10, 11), (1, Complex(0,10), Complex(1,10)), (Complex(0,10), 1, Complex(1,10)), (Complex(0,10), Complex(1), Complex(1,10)), (Complex(1), Complex(0,10), Complex(1,10)), ], 'a-b': [ (1, 10, -9), (1, Complex(0,10), Complex(1,-10)), (Complex(0,10), 1, Complex(-1,10)), (Complex(0,10), C...
1a24bb53d562444fad22880a3606ed91c4f66057 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/1a24bb53d562444fad22880a3606ed91c4f66057/Complex.py
(Complex(1), Complex(0,10), 'TypeError'),
(Complex(1), Complex(0,10), 1),
def test(): testsuite = { 'a+b': [ (1, 10, 11), (1, Complex(0,10), Complex(1,10)), (Complex(0,10), 1, Complex(1,10)), (Complex(0,10), Complex(1), Complex(1,10)), (Complex(1), Complex(0,10), Complex(1,10)), ], 'a-b': [ (1, 10, -9), (1, Complex(0,10), Complex(1,-10)), (Complex(0,10), 1, Complex(-1,10)), (Complex(0,10), C...
1a24bb53d562444fad22880a3606ed91c4f66057 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/1a24bb53d562444fad22880a3606ed91c4f66057/Complex.py
import os
import os, fcntl
def export_add(self, x, y): return x + y
3a97605500919ceeff8c6cd2dd7d352baa1142d8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/3a97605500919ceeff8c6cd2dd7d352baa1142d8/SimpleXMLRPCServer.py
import string str = '' email = '' comment = ''
token = [] tokens = []
def parseaddr(address): import string str = '' email = '' comment = '' backslash = 0 dquote = 0 space = 0 paren = 0 bracket = 0 seen_bracket = 0 for c in address: if backslash: str = str + c backslash = 0 continue if c == '\\': backslash = 1 continue if dquote: if c == '"': dquote = 0 else: str = str + c continue if c ...
7883e1dfbda28cf23085fa01e9e40d4bef9ee19b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/7883e1dfbda28cf23085fa01e9e40d4bef9ee19b/rfc822.py
bracket = 0 seen_bracket = 0
def parseaddr(address): import string str = '' email = '' comment = '' backslash = 0 dquote = 0 space = 0 paren = 0 bracket = 0 seen_bracket = 0 for c in address: if backslash: str = str + c backslash = 0 continue if c == '\\': backslash = 1 continue if dquote: if c == '"': dquote = 0 else: str = str + c continue if c ...
7883e1dfbda28cf23085fa01e9e40d4bef9ee19b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/7883e1dfbda28cf23085fa01e9e40d4bef9ee19b/rfc822.py
str = str + c
token.append(c)
def parseaddr(address): import string str = '' email = '' comment = '' backslash = 0 dquote = 0 space = 0 paren = 0 bracket = 0 seen_bracket = 0 for c in address: if backslash: str = str + c backslash = 0 continue if c == '\\': backslash = 1 continue if dquote: if c == '"': dquote = 0 else: str = str + c continue if c ...
7883e1dfbda28cf23085fa01e9e40d4bef9ee19b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/7883e1dfbda28cf23085fa01e9e40d4bef9ee19b/rfc822.py
continue
def parseaddr(address): import string str = '' email = '' comment = '' backslash = 0 dquote = 0 space = 0 paren = 0 bracket = 0 seen_bracket = 0 for c in address: if backslash: str = str + c backslash = 0 continue if c == '\\': backslash = 1 continue if dquote: if c == '"': dquote = 0 else: str = str + c continue if c ...
7883e1dfbda28cf23085fa01e9e40d4bef9ee19b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/7883e1dfbda28cf23085fa01e9e40d4bef9ee19b/rfc822.py
str = str + c
token.append(c)
def parseaddr(address): import string str = '' email = '' comment = '' backslash = 0 dquote = 0 space = 0 paren = 0 bracket = 0 seen_bracket = 0 for c in address: if backslash: str = str + c backslash = 0 continue if c == '\\': backslash = 1 continue if dquote: if c == '"': dquote = 0 else: str = str + c continue if c ...
7883e1dfbda28cf23085fa01e9e40d4bef9ee19b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/7883e1dfbda28cf23085fa01e9e40d4bef9ee19b/rfc822.py
continue if c in string.whitespace: space = 1 continue if space: str = str + ' ' space = 0
was_quoted = 1 continue
def parseaddr(address): import string str = '' email = '' comment = '' backslash = 0 dquote = 0 space = 0 paren = 0 bracket = 0 seen_bracket = 0 for c in address: if backslash: str = str + c backslash = 0 continue if c == '\\': backslash = 1 continue if dquote: if c == '"': dquote = 0 else: str = str + c continue if c ...
7883e1dfbda28cf23085fa01e9e40d4bef9ee19b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/7883e1dfbda28cf23085fa01e9e40d4bef9ee19b/rfc822.py
str = str + c continue if c == ')':
elif c == ')':
def parseaddr(address): import string str = '' email = '' comment = '' backslash = 0 dquote = 0 space = 0 paren = 0 bracket = 0 seen_bracket = 0 for c in address: if backslash: str = str + c backslash = 0 continue if c == '\\': backslash = 1 continue if dquote: if c == '"': dquote = 0 else: str = str + c continue if c ...
7883e1dfbda28cf23085fa01e9e40d4bef9ee19b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/7883e1dfbda28cf23085fa01e9e40d4bef9ee19b/rfc822.py
comment = comment + str str = ''
token = string.join(token, '') tokens.append((2, token)) token = []
def parseaddr(address): import string str = '' email = '' comment = '' backslash = 0 dquote = 0 space = 0 paren = 0 bracket = 0 seen_bracket = 0 for c in address: if backslash: str = str + c backslash = 0 continue if c == '\\': backslash = 1 continue if dquote: if c == '"': dquote = 0 else: str = str + c continue if c ...
7883e1dfbda28cf23085fa01e9e40d4bef9ee19b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/7883e1dfbda28cf23085fa01e9e40d4bef9ee19b/rfc822.py
paren = paren + 1 if bracket: email = email + str str = '' elif not seen_bracket: email = email + str str = '' continue if bracket: if c == '>': bracket = 0 email = email + str str = ''
paren = 1 token = string.join(token, '') tokens.append((was_quoted, token)) was_quoted = 0 token = [] continue if c in string.whitespace: space = 1 continue if c in '<>@,;:.[]': token = string.join(token, '') tokens.append((was_quoted, token)) was_quoted = 0 token = [] tokens.append((0, c)) space = 0 continue if space:...
def parseaddr(address): import string str = '' email = '' comment = '' backslash = 0 dquote = 0 space = 0 paren = 0 bracket = 0 seen_bracket = 0 for c in address: if backslash: str = str + c backslash = 0 continue if c == '\\': backslash = 1 continue if dquote: if c == '"': dquote = 0 else: str = str + c continue if c ...
7883e1dfbda28cf23085fa01e9e40d4bef9ee19b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/7883e1dfbda28cf23085fa01e9e40d4bef9ee19b/rfc822.py
if c == '<': bracket = 1 seen_bracket = 1 comment = comment + str str = '' email = '' continue if c == ' break str = str + c if str: if seen_bracket: if bracket: email = str
if token == (0, '<'): if addr: raise error, 'syntax error' cur = addr elif token == (0, '>'): if cur is not addr: raise error, 'syntax error' cur = name elif token[0] == 2: if cur is name: name.append('(' + token[1] + ')') else: name.append(token[1]) elif token[0] == 1 and cur is addr: if specials.search(token[1]) >= 0...
def parseaddr(address): import string str = '' email = '' comment = '' backslash = 0 dquote = 0 space = 0 paren = 0 bracket = 0 seen_bracket = 0 for c in address: if backslash: str = str + c backslash = 0 continue if c == '\\': backslash = 1 continue if dquote: if c == '"': dquote = 0 else: str = str + c continue if c ...
7883e1dfbda28cf23085fa01e9e40d4bef9ee19b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/7883e1dfbda28cf23085fa01e9e40d4bef9ee19b/rfc822.py
comment = comment + str else: if paren: comment = comment + str
cur.append(token[1]) else: name = [] addr = [] for token in tokens: if token[1] == '': continue if token[0] == 2: name.append(token[1]) elif token[0] == 1: if specials.search(token[1]) >= 0: addr.append(quote(token[1])) else: addr.append(token[1])
def parseaddr(address): import string str = '' email = '' comment = '' backslash = 0 dquote = 0 space = 0 paren = 0 bracket = 0 seen_bracket = 0 for c in address: if backslash: str = str + c backslash = 0 continue if c == '\\': backslash = 1 continue if dquote: if c == '"': dquote = 0 else: str = str + c continue if c ...
7883e1dfbda28cf23085fa01e9e40d4bef9ee19b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/7883e1dfbda28cf23085fa01e9e40d4bef9ee19b/rfc822.py
email = email + str return string.strip(comment), string.strip(email)
addr.append(token[1]) return string.join(name, ' '), string.join(addr, '')
def parseaddr(address): import string str = '' email = '' comment = '' backslash = 0 dquote = 0 space = 0 paren = 0 bracket = 0 seen_bracket = 0 for c in address: if backslash: str = str + c backslash = 0 continue if c == '\\': backslash = 1 continue if dquote: if c == '"': dquote = 0 else: str = str + c continue if c ...
7883e1dfbda28cf23085fa01e9e40d4bef9ee19b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/7883e1dfbda28cf23085fa01e9e40d4bef9ee19b/rfc822.py
meta = '\n <meta name="aesop" content="%s">'
meta = '<meta name="aesop" content="%s">\n ' % self.aesop_type
def get_header(self): s = HEAD % self.variables if self.uplink: if self.uptitle: link = ('<link rel="up" href="%s" title="%s">' % (self.uplink, self.uptitle)) else: link = '<link rel="up" href="%s">' % self.uplink repl = " %s\n</head>" % link s = s.replace("</head>", repl, 1) if self.aesop_type: meta = '\n <meta name...
b07216b43ad3e375e2a4a80c726bae618c329553 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/b07216b43ad3e375e2a4a80c726bae618c329553/support.py
fp = open(findfile('audiotest.au'), 'rb')
datadir = os.path.join(os.path.dirname(landmark), 'data', '') fp = open(findfile('audiotest.au', datadir), 'rb')
def setUp(self): # In Python, audiotest.au lives in Lib/test not Lib/test/data fp = open(findfile('audiotest.au'), 'rb') try: self._audiodata = fp.read() finally: fp.close() self._au = MIMEAudio(self._audiodata)
f29ffbdbf5a70f5230ce130372055924f71277a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f29ffbdbf5a70f5230ce130372055924f71277a6/test_email.py
n = int(s.rstrip(NUL) or "0", 8)
n = int(s.rstrip(NUL + " ") or "0", 8)
def nti(s): """Convert a number field to a python number. """ # There are two possible encodings for a number field, see # itn() below. if s[0] != chr(0200): n = int(s.rstrip(NUL) or "0", 8) else: n = 0L for i in xrange(len(s) - 1): n <<= 8 n += ord(s[i + 1]) return n
35207712dcfef23dea29d83e4d3d15fcab38b55e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/35207712dcfef23dea29d83e4d3d15fcab38b55e/tarfile.py
if not args: usage('hostname missing') host = args[0]
def main(): global verbose, interactive, mac, rmok, nologin try: opts, args = getopt.getopt(sys.argv[1:], 'a:bil:mnp:qrs:v') except getopt.error, msg: usage(msg) login = '' passwd = '' account = '' for o, a in opts: if o == '-l': login = a if o == '-p': passwd = a if o == '-a': account = a if o == '-v': verbose = verbo...
a4debfffc98f05bff35bb1abc08a749e1753b983 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/a4debfffc98f05bff35bb1abc08a749e1753b983/ftpmirror.py
builtin = r"([^\\.]\b|^)" + any("BUILTIN", builtinlist) + r"\b"
builtin = r"([^.'\"\\]\b|^)" + any("BUILTIN", builtinlist) + r"\b"
def make_pat(): kw = r"\b" + any("KEYWORD", keyword.kwlist) + r"\b" builtinlist = [str(name) for name in dir(__builtin__) if not name.startswith('_')] builtin = r"([^\\.]\b|^)" + any("BUILTIN", builtinlist) + r"\b" comment = any("COMMENT", [r"#[^\n]*"]) sqstring = r"(\b[rR])?'[^'\\\n]*(\\.[^'\\\n]*)*'?" dqstring = r'(\...
0bc3d9857f571021f7c2ccebe1967f4f87cb3e21 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/0bc3d9857f571021f7c2ccebe1967f4f87cb3e21/ColorDelegator.py
return kw + "|" + builtin + "|" + comment + "|" + string + "|" + any("SYNC", [r"\n"])
return kw + "|" + builtin + "|" + comment + "|" + string +\ "|" + any("SYNC", [r"\n"])
def make_pat(): kw = r"\b" + any("KEYWORD", keyword.kwlist) + r"\b" builtinlist = [str(name) for name in dir(__builtin__) if not name.startswith('_')] builtin = r"([^\\.]\b|^)" + any("BUILTIN", builtinlist) + r"\b" comment = any("COMMENT", [r"#[^\n]*"]) sqstring = r"(\b[rR])?'[^'\\\n]*(\\.[^'\\\n]*)*'?" dqstring = r'(\...
0bc3d9857f571021f7c2ccebe1967f4f87cb3e21 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/0bc3d9857f571021f7c2ccebe1967f4f87cb3e21/ColorDelegator.py
allow_colorizing = 1 colorizing = 0
allow_colorizing = True colorizing = False
def delete(self, index1, index2=None): index1 = self.index(index1) self.delegate.delete(index1, index2) self.notify_range(index1)
0bc3d9857f571021f7c2ccebe1967f4f87cb3e21 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/0bc3d9857f571021f7c2ccebe1967f4f87cb3e21/ColorDelegator.py
self.stop_colorizing = 1
self.stop_colorizing = True
def notify_range(self, index1, index2=None): self.tag_add("TODO", index1, index2) if self.after_id: if DEBUG: print "colorizing already scheduled" return if self.colorizing: self.stop_colorizing = 1 if DEBUG: print "stop colorizing" if self.allow_colorizing: if DEBUG: print "schedule colorizing" self.after_id = self.af...
0bc3d9857f571021f7c2ccebe1967f4f87cb3e21 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/0bc3d9857f571021f7c2ccebe1967f4f87cb3e21/ColorDelegator.py
self.allow_colorizing = 0 self.stop_colorizing = 1
self.allow_colorizing = False self.stop_colorizing = True
def close(self, close_when_done=None): if self.after_id: after_id = self.after_id self.after_id = None if DEBUG: print "cancel scheduled recolorizer" self.after_cancel(after_id) self.allow_colorizing = 0 self.stop_colorizing = 1 if close_when_done: if not self.colorizing: close_when_done.destroy() else: self.close_when...
0bc3d9857f571021f7c2ccebe1967f4f87cb3e21 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/0bc3d9857f571021f7c2ccebe1967f4f87cb3e21/ColorDelegator.py
self.stop_colorizing = 1
self.stop_colorizing = True
def toggle_colorize_event(self, event): if self.after_id: after_id = self.after_id self.after_id = None if DEBUG: print "cancel scheduled recolorizer" self.after_cancel(after_id) if self.allow_colorizing and self.colorizing: if DEBUG: print "stop colorizing" self.stop_colorizing = 1 self.allow_colorizing = not self.all...
0bc3d9857f571021f7c2ccebe1967f4f87cb3e21 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/0bc3d9857f571021f7c2ccebe1967f4f87cb3e21/ColorDelegator.py
print "auto colorizing turned", self.allow_colorizing and "on" or "off"
print "auto colorizing turned",\ self.allow_colorizing and "on" or "off"
def toggle_colorize_event(self, event): if self.after_id: after_id = self.after_id self.after_id = None if DEBUG: print "cancel scheduled recolorizer" self.after_cancel(after_id) if self.allow_colorizing and self.colorizing: if DEBUG: print "stop colorizing" self.stop_colorizing = 1 self.allow_colorizing = not self.all...
0bc3d9857f571021f7c2ccebe1967f4f87cb3e21 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/0bc3d9857f571021f7c2ccebe1967f4f87cb3e21/ColorDelegator.py
self.stop_colorizing = 0 self.colorizing = 1
self.stop_colorizing = False self.colorizing = True
def recolorize(self): self.after_id = None if not self.delegate: if DEBUG: print "no delegate" return if not self.allow_colorizing: if DEBUG: print "auto colorizing is off" return if self.colorizing: if DEBUG: print "already colorizing" return try: self.stop_colorizing = 0 self.colorizing = 1 if DEBUG: print "colorizin...
0bc3d9857f571021f7c2ccebe1967f4f87cb3e21 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/0bc3d9857f571021f7c2ccebe1967f4f87cb3e21/ColorDelegator.py
self.colorizing = 0
self.colorizing = False
def recolorize(self): self.after_id = None if not self.delegate: if DEBUG: print "no delegate" return if not self.allow_colorizing: if DEBUG: print "auto colorizing is off" return if self.colorizing: if DEBUG: print "already colorizing" return try: self.stop_colorizing = 0 self.colorizing = 1 if DEBUG: print "colorizin...
0bc3d9857f571021f7c2ccebe1967f4f87cb3e21 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/0bc3d9857f571021f7c2ccebe1967f4f87cb3e21/ColorDelegator.py
while 1:
while True:
def recolorize_main(self): next = "1.0" while 1: item = self.tag_nextrange("TODO", next) if not item: break head, tail = item self.tag_remove("SYNC", head, tail) item = self.tag_prevrange("SYNC", head) if item: head = item[1] else: head = "1.0"
0bc3d9857f571021f7c2ccebe1967f4f87cb3e21 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/0bc3d9857f571021f7c2ccebe1967f4f87cb3e21/ColorDelegator.py
ok = 0
ok = False
def recolorize_main(self): next = "1.0" while 1: item = self.tag_nextrange("TODO", next) if not item: break head, tail = item self.tag_remove("SYNC", head, tail) item = self.tag_prevrange("SYNC", head) if item: head = item[1] else: head = "1.0"
0bc3d9857f571021f7c2ccebe1967f4f87cb3e21 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/0bc3d9857f571021f7c2ccebe1967f4f87cb3e21/ColorDelegator.py
while 1:
while True:
def recolorize_main(self): next = "1.0" while 1: item = self.tag_nextrange("TODO", next) if not item: break head, tail = item self.tag_remove("SYNC", head, tail) item = self.tag_prevrange("SYNC", head) if item: head = item[1] else: head = "1.0"
0bc3d9857f571021f7c2ccebe1967f4f87cb3e21 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/0bc3d9857f571021f7c2ccebe1967f4f87cb3e21/ColorDelegator.py
ok = 0
ok = False
def recolorize_main(self): next = "1.0" while 1: item = self.tag_nextrange("TODO", next) if not item: break head, tail = item self.tag_remove("SYNC", head, tail) item = self.tag_prevrange("SYNC", head) if item: head = item[1] else: head = "1.0"
0bc3d9857f571021f7c2ccebe1967f4f87cb3e21 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/0bc3d9857f571021f7c2ccebe1967f4f87cb3e21/ColorDelegator.py
def __init__(self, root=None, font=None, name=None, **options):
def __init__(self, root=None, font=None, name=None, exists=False, **options):
def __init__(self, root=None, font=None, name=None, **options): if not root: root = Tkinter._default_root if font: # get actual settings corresponding to the given font font = root.tk.splitlist(root.tk.call("font", "actual", font)) else: font = self._set(options) if not name: name = "font" + str(id(self)) self.name = n...
fe84d17a6a3e255191f664c5609a061a9bb70c60 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/fe84d17a6a3e255191f664c5609a061a9bb70c60/tkFont.py
root.tk.call("font", "create", name, *font)
if exists: self.delete_font = False if self.name not in root.tk.call("font", "names"): raise Tkinter._tkinter.TclError, "named font %s does not already exist" % (self.name,) if font: print "font=%r" % font root.tk.call("font", "configure", self.name, *font) else: root.tk.call("font", "create", self.name, *font) sel...
def __init__(self, root=None, font=None, name=None, **options): if not root: root = Tkinter._default_root if font: # get actual settings corresponding to the given font font = root.tk.splitlist(root.tk.call("font", "actual", font)) else: font = self._set(options) if not name: name = "font" + str(id(self)) self.name = n...
fe84d17a6a3e255191f664c5609a061a9bb70c60 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/fe84d17a6a3e255191f664c5609a061a9bb70c60/tkFont.py
self._call("font", "delete", self.name)
if self.delete_font: self._call("font", "delete", self.name)
def __del__(self): try: self._call("font", "delete", self.name) except (AttributeError, Tkinter.TclError): pass
fe84d17a6a3e255191f664c5609a061a9bb70c60 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/fe84d17a6a3e255191f664c5609a061a9bb70c60/tkFont.py
def __del__(self): try: self._call("font", "delete", self.name) except (AttributeError, Tkinter.TclError): pass
fe84d17a6a3e255191f664c5609a061a9bb70c60 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/fe84d17a6a3e255191f664c5609a061a9bb70c60/tkFont.py
name = `id(self)`
Image._last_id += 1 name = "pyimage" +`Image._last_id`
def __init__(self, imgtype, name=None, cnf={}, master=None, **kw): self.name = None if not master: master = _default_root if not master: raise RuntimeError, 'Too early to create image' self.tk = master.tk if not name: name = `id(self)` # The following is needed for systems where id(x) # can return a negative number, su...
0d8ce6111c16c23c87afc2b06e60bb1b61f75746 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/0d8ce6111c16c23c87afc2b06e60bb1b61f75746/Tkinter.py
def _handle_long_word(self, chunks, cur_line, cur_len, width):
def _handle_long_word(self, reversed_chunks, cur_line, cur_len, width):
def _handle_long_word(self, chunks, cur_line, cur_len, width): """_handle_long_word(chunks : [string], cur_line : [string], cur_len : int, width : int)
8bfa8935ea2fc645e5f166f180c2ba18cf11ade3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/8bfa8935ea2fc645e5f166f180c2ba18cf11ade3/textwrap.py
cur_line.append(chunks[0][0:space_left]) chunks[0] = chunks[0][space_left:]
cur_line.append(reversed_chunks[-1][:space_left]) reversed_chunks[-1] = reversed_chunks[-1][space_left:]
def _handle_long_word(self, chunks, cur_line, cur_len, width): """_handle_long_word(chunks : [string], cur_line : [string], cur_len : int, width : int)
8bfa8935ea2fc645e5f166f180c2ba18cf11ade3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/8bfa8935ea2fc645e5f166f180c2ba18cf11ade3/textwrap.py
cur_line.append(chunks.pop(0))
cur_line.append(reversed_chunks.pop())
def _handle_long_word(self, chunks, cur_line, cur_len, width): """_handle_long_word(chunks : [string], cur_line : [string], cur_len : int, width : int)
8bfa8935ea2fc645e5f166f180c2ba18cf11ade3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/8bfa8935ea2fc645e5f166f180c2ba18cf11ade3/textwrap.py
if chunks[0].strip() == '' and lines: del chunks[0]
if chunks[-1].strip() == '' and lines: del chunks[-1]
def _wrap_chunks(self, chunks): """_wrap_chunks(chunks : [string]) -> [string]
8bfa8935ea2fc645e5f166f180c2ba18cf11ade3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/8bfa8935ea2fc645e5f166f180c2ba18cf11ade3/textwrap.py
l = len(chunks[0])
l = len(chunks[-1])
def _wrap_chunks(self, chunks): """_wrap_chunks(chunks : [string]) -> [string]
8bfa8935ea2fc645e5f166f180c2ba18cf11ade3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/8bfa8935ea2fc645e5f166f180c2ba18cf11ade3/textwrap.py
cur_line.append(chunks.pop(0))
cur_line.append(chunks.pop())
def _wrap_chunks(self, chunks): """_wrap_chunks(chunks : [string]) -> [string]
8bfa8935ea2fc645e5f166f180c2ba18cf11ade3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/8bfa8935ea2fc645e5f166f180c2ba18cf11ade3/textwrap.py
if chunks and len(chunks[0]) > width:
if chunks and len(chunks[-1]) > width:
def _wrap_chunks(self, chunks): """_wrap_chunks(chunks : [string]) -> [string]
8bfa8935ea2fc645e5f166f180c2ba18cf11ade3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/8bfa8935ea2fc645e5f166f180c2ba18cf11ade3/textwrap.py
dry_run=0): CCompiler.__init__ (self, verbose, dry_run)
dry_run=0, force=0): CCompiler.__init__ (self, verbose, dry_run, force)
def __init__ (self, verbose=0, dry_run=0):
4fecfce4d09eca422af8ad60363bc83005b7c032 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/4fecfce4d09eca422af8ad60363bc83005b7c032/unixccompiler.py
skipped = newer_pairwise (sources, objects) for skipped_pair in skipped: self.announce ("skipping %s (%s up-to-date)" % skipped_pair)
if not self.force: skipped = newer_pairwise (sources, objects) for skipped_pair in skipped: self.announce ("skipping %s (%s up-to-date)" % skipped_pair)
def compile (self, sources, output_dir=None, macros=None, includes=None, extra_preargs=None, extra_postargs=None):
4fecfce4d09eca422af8ad60363bc83005b7c032 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/4fecfce4d09eca422af8ad60363bc83005b7c032/unixccompiler.py
lib_opts = gen_lib_options (self.library_dirs + library_dirs, self.libraries + libraries, "-L%s", "-l%s")
lib_opts = gen_lib_options (self, self.library_dirs + library_dirs, self.libraries + libraries)
def link_shared_object (self, objects, output_filename, output_dir=None, libraries=None, library_dirs=None, extra_preargs=None, extra_postargs=None):
4fecfce4d09eca422af8ad60363bc83005b7c032 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/4fecfce4d09eca422af8ad60363bc83005b7c032/unixccompiler.py
try: newer = newer_group (objects, output_filename) except OSError: if self.dry_run: newer = 1 else: raise if newer: ld_args = self.ldflags_shared + lib_opts + \ objects + ['-o', output_filename]
if not self.force: try: newer = newer_group (objects, output_filename) except OSError: if self.dry_run: newer = 1 else: raise if self.force or newer: ld_args = self.ldflags_shared + objects + \ lib_opts + ['-o', output_filename]
def link_shared_object (self, objects, output_filename, output_dir=None, libraries=None, library_dirs=None, extra_preargs=None, extra_postargs=None):
4fecfce4d09eca422af8ad60363bc83005b7c032 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/4fecfce4d09eca422af8ad60363bc83005b7c032/unixccompiler.py
return "lib%s%s" % (libname, self._static_lib_ext )
return "lib%s%s" % (libname, self._static_lib_ext)
def library_filename (self, libname): return "lib%s%s" % (libname, self._static_lib_ext )
4fecfce4d09eca422af8ad60363bc83005b7c032 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/4fecfce4d09eca422af8ad60363bc83005b7c032/unixccompiler.py
return "lib%s%s" % (libname, self._shared_lib_ext )
return "lib%s%s" % (libname, self._shared_lib_ext) def library_dir_option (self, dir): return "-L" + dir def library_option (self, lib): return "-l" + lib def find_library_file (self, dirs, lib): for dir in dirs: shared = os.path.join (dir, self.shared_library_filename (lib)) static = os.path.join (dir, self.libr...
def shared_library_filename (self, libname): return "lib%s%s" % (libname, self._shared_lib_ext )
4fecfce4d09eca422af8ad60363bc83005b7c032 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/4fecfce4d09eca422af8ad60363bc83005b7c032/unixccompiler.py
def fileConfig(fname):
def fileConfig(fname, defaults=None):
def fileConfig(fname): """ Read the logging configuration from a ConfigParser-format file. This can be called several times from an application, allowing an end user the ability to select from various pre-canned configurations (if the developer provides a mechanism to present the choices and load the chosen configurat...
3165786dd19fca1b967b2f4c782d20bc2339a6e3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/3165786dd19fca1b967b2f4c782d20bc2339a6e3/config.py
cp = ConfigParser.ConfigParser()
cp = ConfigParser.ConfigParser(defaults)
def fileConfig(fname): """ Read the logging configuration from a ConfigParser-format file. This can be called several times from an application, allowing an end user the ability to select from various pre-canned configurations (if the developer provides a mechanism to present the choices and load the chosen configurat...
3165786dd19fca1b967b2f4c782d20bc2339a6e3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/3165786dd19fca1b967b2f4c782d20bc2339a6e3/config.py
opts, args = getopt.getopt(sys.argv[1:], 'e:p:')
opts, args = getopt.getopt(sys.argv[1:], 'e:p:P:')
def main(): # overridable context prefix = PREFIX # settable with -p option extensions = [] path = sys.path # output files frozen_c = 'frozen.c' config_c = 'config.c' target = 'a.out' # normally derived from script name makefile = 'Makefile' # parse command line try: opts, args = getopt.getopt(sys.argv[1:], 'e:p:'...
150316ee2e7db3d0ad633f2dbe53a066add49e45 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/150316ee2e7db3d0ad633f2dbe53a066add49e45/freeze.py
binlib = os.path.join(prefix, 'lib/python/lib')
binlib = os.path.join(exec_prefix, 'lib/python/lib')
def main(): # overridable context prefix = PREFIX # settable with -p option extensions = [] path = sys.path # output files frozen_c = 'frozen.c' config_c = 'config.c' target = 'a.out' # normally derived from script name makefile = 'Makefile' # parse command line try: opts, args = getopt.getopt(sys.argv[1:], 'e:p:'...
150316ee2e7db3d0ad633f2dbe53a066add49e45 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/150316ee2e7db3d0ad633f2dbe53a066add49e45/freeze.py
defines = ['-DHAVE_CONFIG_H', '-DUSE_FROZEN', '-DNO_MAIN',
defines = ['-DHAVE_CONFIG_H',
def main(): # overridable context prefix = PREFIX # settable with -p option extensions = [] path = sys.path # output files frozen_c = 'frozen.c' config_c = 'config.c' target = 'a.out' # normally derived from script name makefile = 'Makefile' # parse command line try: opts, args = getopt.getopt(sys.argv[1:], 'e:p:'...
150316ee2e7db3d0ad633f2dbe53a066add49e45 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/150316ee2e7db3d0ad633f2dbe53a066add49e45/freeze.py
for dir in [prefix, binlib, incldir] + extensions:
for dir in [prefix, exec_prefix, binlib, incldir] + extensions:
def main(): # overridable context prefix = PREFIX # settable with -p option extensions = [] path = sys.path # output files frozen_c = 'frozen.c' config_c = 'config.c' target = 'a.out' # normally derived from script name makefile = 'Makefile' # parse command line try: opts, args = getopt.getopt(sys.argv[1:], 'e:p:'...
150316ee2e7db3d0ad633f2dbe53a066add49e45 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/150316ee2e7db3d0ad633f2dbe53a066add49e45/freeze.py