Searched refs:new_scope (Results 1 – 1 of 1) sorted by relevance
220 def change_scope(self, new_scope): argument222 if isinstance(new_scope, list):223 self.__current_scope = new_scope224 elif isinstance(new_scope, str):225 if new_scope.startswith("\\"):226 self.__current_scope = [i for i in new_scope[1:].split(".") if i]227 elif new_scope.startswith("^"):228 parent_count = new_scope.count("^")230 … self.__current_scope = self.__current_scope[:-parent_count].extend(new_scope.split("."))232 self.__current_scope.extend(new_scope.split("."))[all …]
Completed in 3 milliseconds