1. Sarvi Shanmugham
  2. cffi

Source

cffi / setup.py

Diff from to

File setup.py

  • Ignore whitespace
     try:
         p = subprocess.Popen(['pkg-config', option, 'libffi'],
                              stdout=subprocess.PIPE, stderr=open('/dev/null', 'w'))
-    except OSError, e:
+    except OSError as e:
         if e.errno != errno.ENOENT:
             raise
     else:
-        t = p.stdout.read().strip()
+        t = p.stdout.read().decode().strip()
         if p.wait() == 0:
             res = t.split()
             # '-I/usr/...' -> '/usr/...'