python: standardize intra-bt2 imports
[babeltrace.git] / src / bindings / python / bt2 / bt2 / py_plugin.py
index 6f067e8b4d59c4e794362372a05ccf8f008393ec..863ae7f0aa4cfe9149f0e79fa9acd53c14ad5659 100644 (file)
@@ -2,7 +2,7 @@
 #
 # Copyright (c) 2017 Philippe Proulx <pproulx@efficios.com>
 
-from bt2 import utils
+from bt2 import utils as bt2_utils
 from bt2 import component as bt2_component
 import sys
 
@@ -27,16 +27,16 @@ def register_plugin(
             "cannot find module '{}' in loaded modules".format(module_name)
         )
 
-    utils._check_str(name)
+    bt2_utils._check_str(name)
 
     if description is not None:
-        utils._check_str(description)
+        bt2_utils._check_str(description)
 
     if author is not None:
-        utils._check_str(author)
+        bt2_utils._check_str(author)
 
     if license is not None:
-        utils._check_str(license)
+        bt2_utils._check_str(license)
 
     if version is not None:
         if not _validate_version(version):
This page took 0.02391 seconds and 4 git commands to generate.