X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Fconnection.py;h=0dc578265c584f736fff513751e3b830b180715d;hb=5ae9f1bf3332a2dff16e6e811b982f0b5602dc47;hp=9ffd7bb1ed3b4d19697d4cf2ce48161ab1eb3b31;hpb=cacd0713f087e93cdb4c58d5d303ff473df8803e;p=babeltrace.git diff --git a/src/bindings/python/bt2/bt2/connection.py b/src/bindings/python/bt2/bt2/connection.py index 9ffd7bb1..0dc57826 100644 --- a/src/bindings/python/bt2/bt2/connection.py +++ b/src/bindings/python/bt2/bt2/connection.py @@ -33,9 +33,6 @@ class _Connection(bt2.object._SharedObject): @property def downstream_port(self): port_ptr = native_bt.connection_borrow_downstream_port_const(self._ptr) - utils._handle_ptr( - port_ptr, "cannot get connection object's downstream port object" - ) return bt2.port._create_from_ptr_and_get_ref( port_ptr, native_bt.PORT_TYPE_INPUT ) @@ -43,9 +40,6 @@ class _Connection(bt2.object._SharedObject): @property def upstream_port(self): port_ptr = native_bt.connection_borrow_upstream_port_const(self._ptr) - utils._handle_ptr( - port_ptr, "cannot get connection object's upstream port object" - ) return bt2.port._create_from_ptr_and_get_ref( port_ptr, native_bt.PORT_TYPE_OUTPUT )