diff options
author | Thomas Kahle <thomas.kahle@jpberlin.de> | 2015-06-21 09:07:31 +0200 |
---|---|---|
committer | Thomas Kahle <thomas.kahle@jpberlin.de> | 2015-06-21 09:07:31 +0200 |
commit | e47e193a1ce1d79e531f00d934af8dc1422ac8be (patch) | |
tree | 714c46388a1e6b52c806e7d2ad4c40dac20c3826 /tatt | |
parent | Make import of urllib python2/3 compatible (diff) | |
download | tatt-e47e193a1ce1d79e531f00d934af8dc1422ac8be.tar.gz tatt-e47e193a1ce1d79e531f00d934af8dc1422ac8be.tar.bz2 tatt-e47e193a1ce1d79e531f00d934af8dc1422ac8be.zip |
Fix string encoding issues for python3
Diffstat (limited to 'tatt')
-rw-r--r-- | tatt/tinderbox.py | 2 | ||||
-rw-r--r-- | tatt/usecombis.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tatt/tinderbox.py b/tatt/tinderbox.py index b78bde8..ad6669e 100644 --- a/tatt/tinderbox.py +++ b/tatt/tinderbox.py @@ -76,7 +76,7 @@ def stablerdeps (package, config): outlist2.remove(samp) eixcall = ["eix", "--stable", "--only-names", "--exact", samp[0]] p2 = Popen(eixcall, stdout=PIPE) - out = p2.communicate()[0] + out = p2.communicate()[0].decode('utf-8') if out == '': continue else : outlist.append(samp) diff --git a/tatt/usecombis.py b/tatt/usecombis.py index abb5f7a..4ae8642 100644 --- a/tatt/usecombis.py +++ b/tatt/usecombis.py @@ -14,7 +14,7 @@ def findUseFlagCombis (package, config): The output will be a list each containing a ready to use USE=... string """ uses=Popen('equery -C uses '+package.packageString()+' | cut -f 1 | cut -c 2-40 | xargs', - shell=True, stdout=PIPE).communicate()[0] + shell=True, stdout=PIPE).communicate()[0].decode('utf-8') uselist=uses.split() # The uselist could have duplicates due to slot-conditional # output of equery |