airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fo...@apache.org
Subject incubator-airflow git commit: [AIRFLOW-2467][AIRFLOW-2] Update import direct warn message to use the module name
Date Wed, 16 May 2018 08:46:33 GMT
Repository: incubator-airflow
Updated Branches:
  refs/heads/master ee81a6ad8 -> 802cbd9b9


[AIRFLOW-2467][AIRFLOW-2] Update import direct warn message to use the module name

Closes #3361 from dan-sf/AIRFLOW-2467


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

Branch: refs/heads/master
Commit: 802cbd9b9b497a3630aaaf2e6f656a98ffc7d550
Parents: ee81a6a
Author: dan-sf <fowler.dn@gmail.com>
Authored: Wed May 16 10:46:27 2018 +0200
Committer: Fokko Driesprong <fokkodriesprong@godatadriven.com>
Committed: Wed May 16 10:46:27 2018 +0200

----------------------------------------------------------------------
 airflow/utils/helpers.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-airflow/blob/802cbd9b/airflow/utils/helpers.py
----------------------------------------------------------------------
diff --git a/airflow/utils/helpers.py b/airflow/utils/helpers.py
index 3389788..911890d 100644
--- a/airflow/utils/helpers.py
+++ b/airflow/utils/helpers.py
@@ -338,11 +338,11 @@ class AirflowImporter(object):
             # This functionality is deprecated, and AirflowImporter should be
             # removed in 2.0.
             warnings.warn(
-                "Importing {i} directly from {m} has been "
+                "Importing '{i}' directly from '{m}' has been "
                 "deprecated. Please import from "
                 "'{m}.[operator_module]' instead. Support for direct "
                 "imports will be dropped entirely in Airflow 2.0.".format(
-                    i=attribute, m=self._parent_module),
+                    i=attribute, m=self._parent_module.__name__),
                 DeprecationWarning)
 
         loaded_module = self._loaded_modules[module]


Mime
View raw message