mirror of
https://gitlab.com/libvirt/libvirt-python.git
synced 2025-07-14 16:59:34 +03:00
python: Mark event callback wrappers as private
These functions aren't intended to be called directly by users, so mark them as private. While we're at it, remove unneeded exception handling, and break some long lines.
This commit is contained in:
@ -117,7 +117,7 @@ def getVersion (name = None):
|
||||
#
|
||||
# Invoke an EventHandle callback
|
||||
#
|
||||
def eventInvokeHandleCallback(watch, fd, event, opaque, opaquecompat=None):
|
||||
def _eventInvokeHandleCallback(watch, fd, event, opaque, opaquecompat=None):
|
||||
"""
|
||||
Invoke the Event Impl Handle Callback in C
|
||||
"""
|
||||
@ -137,7 +137,7 @@ def eventInvokeHandleCallback(watch, fd, event, opaque, opaquecompat=None):
|
||||
#
|
||||
# Invoke an EventTimeout callback
|
||||
#
|
||||
def eventInvokeTimeoutCallback(timer, opaque, opaquecompat=None):
|
||||
def _eventInvokeTimeoutCallback(timer, opaque, opaquecompat=None):
|
||||
"""
|
||||
Invoke the Event Impl Timeout Callback in C
|
||||
"""
|
||||
|
Reference in New Issue
Block a user