import warnings from gi.repository import GLib # GLib.threads_init() is deprecated, which is awesome, but it prints out an # error message which will be confusing to beginners. # I don't want to remove this either, as the library still needs to be usable on # older systems. # So we monkey-patch the warning away. _warn = warnings.warn warnings.warn = lambda *a, **k: None GLib.threads_init() warnings.warn = _warn from network.client import Client from network.server import Server