Karthikeyan Singaravelan created AIRFLOW-4920:
-------------------------------------------------

             Summary: cgi.escape used in QueryView was removed in Python 3.8
                 Key: AIRFLOW-4920
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-4920
             Project: Apache Airflow
          Issue Type: Bug
          Components: webserver
    Affects Versions: 1.10.4
         Environment: Ubuntu 16.04.5 LTS
Python 3.8
            Reporter: Karthikeyan Singaravelan
            Assignee: Karthikeyan Singaravelan


QueryView uses AceEditorWidget form which uses cgi.escape. cgi.escape was 
deprecated since Python 3.3 and removed in 3.8. It's recommended to use 
html.escape. cgi.escape can still be available for Python 2 compatibility.

Sample warning in Python 3.7 :
{code:java}
/home/karthi/airflow/airflow/www/utils.py:442: DeprecationWarning: cgi.escape 
is deprecated, use html.escape instead
  contents=escape(text_type(field._value())),
{code}
CPython issue : [https://bugs.python.org/issue33843]

I will create a PR for this issue.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to