diff options
author | Christoph Reiter <creiter@src.gnome.org> | 2017-04-02 14:13:08 +0200 |
---|---|---|
committer | Christoph Reiter <creiter@src.gnome.org> | 2017-04-02 14:14:49 +0200 |
commit | 52693463749f045355a7ddeace033d369fe2e786 (patch) | |
tree | 277c5111c0241d81ffa3b7c864afd49a4da20df1 /tests/test_mainloop.py | |
parent | 1039e9a512d1df35e9c4656b0b41c1e4a25aafad (diff) | |
download | pygobject-52693463749f045355a7ddeace033d369fe2e786.tar.gz |
tests: remove python 2.5/3.2 compat code
2.7/3.3 support the u/b prefixes and both have callable()
Diffstat (limited to 'tests/test_mainloop.py')
-rw-r--r-- | tests/test_mainloop.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/test_mainloop.py b/tests/test_mainloop.py index ae3919ee..fda6787a 100644 --- a/tests/test_mainloop.py +++ b/tests/test_mainloop.py @@ -8,8 +8,6 @@ import unittest from gi.repository import GLib -from compathelper import _bytes - class TestMainLoop(unittest.TestCase): @@ -32,7 +30,7 @@ class TestMainLoop(unittest.TestCase): GLib.child_watch_add(GLib.PRIORITY_DEFAULT, pid, child_died, loop) os.close(pipe_r) - os.write(pipe_w, _bytes("Y")) + os.write(pipe_w, b"Y") os.close(pipe_w) def excepthook(type, value, traceback): |