Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

        def isLocal(addr):
	return addr == "localhost" or addr == "127.0.0.1" or addr == LOCAL_IP
        


src/c/o/corunner-1.0.7/corunner/common/ArgumentParser.py   corunner(Download)
			for i in range(start, end + 1):
				ip = prefix + str(i)
				if NetUtil.isLocal(ip):
					ip = localIP
				if port == None:
					nodes.append(ip)
				else:
					nodes.append(ip + ":" + port)
		else:
			if NetUtil.isLocal(split):

src/c/o/corunner-1.0.7/corunner/common/FileDispatcher.py   corunner(Download)
	def __copy(self, localPath, remotePath, targetIP, targetPort, mkdir, isOut):
		if NetUtil.isLocal(targetIP):
			if isOut:
				if mkdir:
					ShellUtil.execute(["mkdir", "-p", remotePath])