-
Simon Feltman authored
Use __future__ unicode_literals to minimize difference between python 2.7 and 3. Comparisons need to encode arguments as 'UTF-8' for testing readline operations. Add backwards compatible "next" to support the python 2.7 iteration. Change isinstance(channel, file) to hasattr(channel, 'fileno') to support all python versions (and duck typing). https://bugzilla.gnome.org/show_bug.cgi?id=687047
9c6399bb