pkginfo: adjust for python3
authorJulien Cristau <julien.cristau@logilab.fr>
Fri, 25 Jul 2014 21:01:03 +0200
changeset 759 abffb3f1ab37
parent 758 030ac7d58d18
child 760 5b44acfd687b
pkginfo: adjust for python3 Popen's stdout is a byte stream.
__pkginfo__.py
--- a/__pkginfo__.py	Wed Jul 15 09:38:13 2015 +0200
+++ b/__pkginfo__.py	Fri Jul 25 21:01:03 2014 +0200
@@ -48,7 +48,7 @@
         try:
             res = os.system("g++ -o gecode_version data/gecode_version.cc")
             p = subprocess.Popen("./gecode_version", stdout=subprocess.PIPE)
-            vers = p.stdout.read()
+            vers = p.stdout.read().decode('ascii')
             version = [int(c) for c in vers.strip().split('.')]
         except OSError:
             pass