summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Varner <fuzzyray@gentoo.org>2016-07-25 13:01:06 -0500
committerPaul Varner <fuzzyray@gentoo.org>2016-07-25 13:01:06 -0500
commitbc92540f8ce498e8305103619c7085b670ba19b1 (patch)
tree5bb8020776cf7e01b9e9bcae86fb85ec34fb6069
parentenalyze: Add width and prepend options (diff)
downloadgentoolkit-bc92540f8ce498e8305103619c7085b670ba19b1.tar.gz
gentoolkit-bc92540f8ce498e8305103619c7085b670ba19b1.tar.bz2
gentoolkit-bc92540f8ce498e8305103619c7085b670ba19b1.zip
Add missing import of io.open when using python2.70.3.2-r1
This fixes the traceback when running equery changes with Python 2.7 X-Gentoo-bug: 589686 X-Gentoo-bug-url: https://bugs.gentoo.org/show_bug.cgi?id=589686
-rw-r--r--pym/gentoolkit/helpers.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/gentoolkit/helpers.py b/pym/gentoolkit/helpers.py
index 0d985b6..8d25393 100644
--- a/pym/gentoolkit/helpers.py
+++ b/pym/gentoolkit/helpers.py
@@ -26,6 +26,9 @@ __docformat__ = 'epytext'
# =======
import os
+import sys
+if sys.hexversion < 0x3000000:
+ from io import open
import re
from functools import partial
from itertools import chain