예제 #1
0
	def getScope(self, filename, scopename):
		if not filename in self.scopesByFilename:
			wf.warn('File "' + filename + '" was not found while looking for scope "' + scopename + '"')
			return False
		else:
			pr('Filename scopes:')
			for scope in self.scopesByFilename[filename]:
				pr(scope.__dict__)
				if scope.name == scopename:
					return scope
예제 #2
0
def warn(message, showStack = True): wf.warn(message, showStack, 3)
def info(message, showStack = True): wf.info(message, showStack, 3)