Clean up, remove compat with py < 3.6
[pyi2ncommon] / src / web_interface.py
index 011ac91..e4e401d 100644 (file)
@@ -38,9 +38,10 @@ import http.client as client
 import urllib.parse as parse
 import socket
 import logging
+from .arnied_wrapper import accept_licence
+
 log = logging.getLogger('pyi2ncommon.web_interface')
 
-from .arnied_wrapper import accept_licence
 
 #: FQDN of local machine
 LOCALHOST = socket.gethostname()
@@ -48,9 +49,10 @@ LOCALHOST = socket.gethostname()
 
 def find_in_form(regex, form="status", escape=False, check_certs=True):
     """
-    Find a regex in I2N web page's status frame.
+    Find a regex in given I2N web page form.
 
     :param str regex: regular expression to find
+    :param str form: form name to open
     :param bool escape: whether to escape the regex
     :param check_certs: forwarded to :py:func:`web_page_request`, see doc there
     :returns: whether the regex was found