[glib: 1/4] tests: Drop compatibility with python 2 from TAP test runner
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/4] tests: Drop compatibility with python 2 from TAP test runner
- Date: Thu, 13 Dec 2018 09:13:26 +0000 (UTC)
commit 3b7f7a4ed9be590b2b149c183dcfa721bace50cd
Author: Tomasz Miąsko <tomasz miasko gmail com>
Date: Wed Dec 12 00:00:00 2018 +0000
tests: Drop compatibility with python 2 from TAP test runner
gobject/tests/taptestrunner.py | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/gobject/tests/taptestrunner.py b/gobject/tests/taptestrunner.py
index efd41dd25..bdadd9f00 100644
--- a/gobject/tests/taptestrunner.py
+++ b/gobject/tests/taptestrunner.py
@@ -28,10 +28,7 @@
import unittest
import sys
import base64
-if sys.hexversion >= 0x03000000:
- from io import StringIO
-else:
- from StringIO import StringIO
+from io import StringIO
# Log modes
class LogMode(object) :
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]