aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Dolbec <dolsen@gentoo.org>2016-07-31 21:08:04 -0700
committerBrian Dolbec <dolsen@gentoo.org>2016-07-31 21:08:04 -0700
commit82b2756645937eea0bd05349736630cc7b86bc2f (patch)
tree6ed38a4db50eff2f41e89df163325473c23a9047
parentNEWS: Update for a release (diff)
parentAdd missing import of io.open when using python2.7 (diff)
downloadgentoolkit-82b2756645937eea0bd05349736630cc7b86bc2f.tar.gz
gentoolkit-82b2756645937eea0bd05349736630cc7b86bc2f.tar.bz2
gentoolkit-82b2756645937eea0bd05349736630cc7b86bc2f.zip
Merge branch 'master' of git+ssh://git.gentoo.org/proj/gentoolkit
-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