Commit dad40731 authored by Emmanuel Gil Peyrot's avatar Emmanuel Gil Peyrot

Util: Move the extend_form import to the only function using it

This breaks a circular import issue.
parent 355cfbac
Pipeline #5440 failed with stages
in 30 seconds
......@@ -46,7 +46,6 @@ from nbxmpp.structs import PresenceProperties
from nbxmpp.structs import CommonError
from nbxmpp.structs import HTTPUploadError
from nbxmpp.structs import StanzaMalformedError
from nbxmpp.modules.dataforms import extend_form
from nbxmpp.third_party.hsluv import hsluv_to_rgb
log = logging.getLogger('nbxmpp.util')
......@@ -347,6 +346,7 @@ def get_form(stanza, form_type):
if not forms:
return None
from nbxmpp.modules.dataforms import extend_form
for form in forms:
form = extend_form(node=form)
field = form.vars.get('FORM_TYPE')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment