You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ariatosca.apache.org by av...@apache.org on 2017/04/15 12:56:29 UTC

[02/19] incubator-ariatosca git commit: reorded imports in logger.py

reorded imports in logger.py


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

Branch: refs/heads/cli-tests
Commit: faa67acdb937f946eafb98c832a90e9d882406f1
Parents: 5dc3a58
Author: max-orlov <ma...@gigaspaces.com>
Authored: Thu Apr 13 17:46:18 2017 +0300
Committer: max-orlov <ma...@gigaspaces.com>
Committed: Thu Apr 13 17:46:18 2017 +0300

----------------------------------------------------------------------
 aria/logger.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/faa67acd/aria/logger.py
----------------------------------------------------------------------
diff --git a/aria/logger.py b/aria/logger.py
index 41e1ac8..dd54264 100644
--- a/aria/logger.py
+++ b/aria/logger.py
@@ -19,16 +19,16 @@ Logging related mixins and functions
 
 import logging
 from logging import handlers as logging_handlers
-from datetime import datetime
-
 # NullHandler doesn't exist in < 27. this workaround is from
 # http://docs.python.org/release/2.6/library/logging.html#configuring-logging-for-a-library
 try:
-    from logging import NullHandler
+    from logging import NullHandler                                                                 # pylint: disable=unused-import
 except ImportError:
     class NullHandler(logging.Handler):
         def emit(self, record):
             pass
+from datetime import datetime
+
 
 TASK_LOGGER_NAME = 'aria.executions.task'