Merge "Extended Context class with get_physical_nodes functionality"
[yardstick.git] / yardstick / benchmark / scenarios / parser / parser.py
index 6d39733..5b2b49c 100644 (file)
@@ -6,13 +6,13 @@
 # which accompanies this distribution, and is available at
 # http://www.apache.org/licenses/LICENSE-2.0
 ##############################################################################
-from __future__ import print_function
-from __future__ import absolute_import
+
 import pkg_resources
 import logging
 import subprocess
 from yardstick.benchmark.scenarios import base
 
+
 LOG = logging.getLogger(__name__)
 
 
@@ -63,12 +63,12 @@ class Parser(base.Scenario):
         p = subprocess.Popen(cmd1, shell=True, stdout=subprocess.PIPE,
                              stderr=subprocess.PIPE)
         p.communicate()
-        print("yangtotosca finished")
+        LOG.info("yangtotosca finished")
 
         result['yangtotosca'] = "success" if p.returncode == 0 else "fail"
 
     def teardown(self):
-        ''' for scenario teardown remove parser and pyang '''
+        """ for scenario teardown remove parser and pyang """
         self.teardown_script = pkg_resources.resource_filename(
             "yardstick.benchmark.scenarios.parser",
             Parser.TEARDOWN_SCRIPT)
@@ -77,7 +77,7 @@ class Parser(base.Scenario):
 
 
 def _test():
-    '''internal test function'''
+    """internal test function"""
     pass