Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/python-nbxmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlovetox <philipp@hoerist.com>2022-04-02 17:59:11 +0300
committerlovetox <philipp@hoerist.com>2022-04-02 17:59:11 +0300
commita55e844c455066b22f2205524553020e60a71a36 (patch)
tree493ce8ab559dbc7bd849e18322e80b893ab42d8b
parentf2189e134dd07398c445e5c88aa07625dacf59e0 (diff)
refactor: Remove unused attribute
-rw-r--r--nbxmpp/simplexml.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/nbxmpp/simplexml.py b/nbxmpp/simplexml.py
index 4e37cdb..9c380f7 100644
--- a/nbxmpp/simplexml.py
+++ b/nbxmpp/simplexml.py
@@ -592,7 +592,6 @@ class NodeBuilder:
_parser: Any
Parse: Callable[[str, bool], None]
__depth: int
- __last_depth: int
__max_depth: int
_dispatch_depth: int
_document_attrs: Optional[Attrs]
@@ -634,7 +633,6 @@ class NodeBuilder:
self.Parse = self._parser.Parse
self.__depth = 0
- self.__last_depth = 0
self.__max_depth = 0
self._dispatch_depth = dispatch_depth
self._document_attrs = None
@@ -799,12 +797,10 @@ class NodeBuilder:
return self.__depth <= level < self.__max_depth
def _inc_depth(self) -> None:
- self.__last_depth = self.__depth
self.__depth += 1
self.__max_depth = max(self.__depth, self.__max_depth)
def _dec_depth(self) -> None:
- self.__last_depth = self.__depth
self.__depth -= 1
def XML2Node(xml_str: str) -> Optional[Node]: