You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by cr...@apache.org on 2017/07/12 17:09:33 UTC

incubator-airflow git commit: [AIRFLOW-1402] Cleanup SafeConfigParser DeprecationWarning

Repository: incubator-airflow
Updated Branches:
  refs/heads/master f5ffb9deb -> 38c86bbbc


[AIRFLOW-1402] Cleanup SafeConfigParser DeprecationWarning

Closes #2435 from ronfung/work


Project: http://git-wip-us.apache.org/repos/asf/incubator-airflow/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-airflow/commit/38c86bbb
Tree: http://git-wip-us.apache.org/repos/asf/incubator-airflow/tree/38c86bbb
Diff: http://git-wip-us.apache.org/repos/asf/incubator-airflow/diff/38c86bbb

Branch: refs/heads/master
Commit: 38c86bbbcbc85ec470f31a33f2a480ea45510a45
Parents: f5ffb9d
Author: Ron Fung <ro...@wepay.com>
Authored: Wed Jul 12 10:09:24 2017 -0700
Committer: Chris Riccomini <cr...@apache.org>
Committed: Wed Jul 12 10:09:24 2017 -0700

----------------------------------------------------------------------
 airflow/configuration.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-airflow/blob/38c86bbb/airflow/configuration.py
----------------------------------------------------------------------
diff --git a/airflow/configuration.py b/airflow/configuration.py
index e325067..460d975 100644
--- a/airflow/configuration.py
+++ b/airflow/configuration.py
@@ -42,7 +42,10 @@ warnings.filterwarnings(
 warnings.filterwarnings(
     action='default', category=PendingDeprecationWarning, module='airflow')
 
-ConfigParser = configparser.SafeConfigParser
+if six.PY3:
+    ConfigParser = configparser.ConfigParser
+else:
+    ConfigParser = configparser.SafeConfigParser
 
 
 def generate_fernet_key():