python: run isort on everything
[babeltrace.git] / src / bindings / python / bt2 / bt2 / connection.py
index 0f1fce65c8d5c2529b9bfd066b6fb494ce1dbdf6..cdbe271ec109e4f0a05f6f4db05ab6a45c3adf0f 100644 (file)
@@ -2,14 +2,19 @@
 #
 # Copyright (c) 2017 Philippe Proulx <pproulx@efficios.com>
 
-from bt2 import native_bt
 from bt2 import port as bt2_port
 from bt2 import object as bt2_object
+from bt2 import native_bt
 
 
 class _ConnectionConst(bt2_object._SharedObject):
-    _get_ref = staticmethod(native_bt.connection_get_ref)
-    _put_ref = staticmethod(native_bt.connection_put_ref)
+    @staticmethod
+    def _get_ref(ptr):
+        native_bt.connection_get_ref(ptr)
+
+    @staticmethod
+    def _put_ref(ptr):
+        native_bt.connection_put_ref(ptr)
 
     @property
     def downstream_port(self):
This page took 0.024987 seconds and 4 git commands to generate.