File "timeout.py"

Full Path: /home/attunedd/public_html/byp/izo/con7ext_sym404/rintoar.txt/usr/lib/python3.6/site-packages/pydbus/timeout.py
File size: 303 bytes
MIME-type: text/x-script.python
Charset: utf-8

from gi.repository import GLib, GObject

def timeout_to_glib(timeout):
	if timeout is None:
		try:
			return GLib.MAXINT
		except AttributeError:
			# GLib < 2.46
			return GObject.G_MAXINT
	else:
		try:
			timeout = timeout.total_seconds()
		except AttributeError:
			pass
		return int(timeout * 1000)