Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gajim
python-nbxmpp
Commits
6f8890d7
Commit
6f8890d7
authored
Oct 25, 2021
by
Philipp Hörist
Browse files
Don’t use dataclasses.asdict()
asdict() recurses into other objects, we don’t want this here
parent
e3d66d9c
Pipeline
#8396
failed with stages
in 2 minutes and 53 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nbxmpp/structs.py
View file @
6f8890d7
...
...
@@ -197,7 +197,11 @@ class RosterItem:
groups
=
groups
)
def
asdict
(
self
):
return
dataclasses
.
asdict
(
self
)
return
{
'jid'
:
self
.
jid
,
'name'
:
self
.
name
,
'ask'
:
self
.
ask
,
'subscription'
:
self
.
subscription
,
'groups'
:
self
.
groups
}
class
DiscoInfo
(
namedtuple
(
'DiscoInfo'
,
'stanza identities features dataforms timestamp'
)):
...
...
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