Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gajim
python-nbxmpp
Commits
a55e844c
Commit
a55e844c
authored
Apr 02, 2022
by
Philipp Hörist
Browse files
refactor: Remove unused attribute
parent
f2189e13
Changes
1
Hide whitespace changes
Inline
Side-by-side
nbxmpp/simplexml.py
View file @
a55e844c
...
...
@@ -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
]:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment