diff options
author | Michal Vyskocil <michal.vyskocil@gmail.com> | 2017-05-25 10:02:18 +0200 |
---|---|---|
committer | Michal Vyskocil <michal.vyskocil@gmail.com> | 2017-05-25 10:02:18 +0200 |
commit | fed468bcee7be3ce005321cbcd97fd1d1a64b567 (patch) | |
tree | 80bb4b76236ed7127a7f36b3affade7471936541 /cffi | |
parent | 094ebd4afb3cae6f9d404fe8d295ecfd8e5600de (diff) | |
download | cffi-fed468bcee7be3ce005321cbcd97fd1d1a64b567.tar.gz |
code not compatible with python3
use bytes instead of strings
Diffstat (limited to 'cffi')
-rw-r--r-- | cffi/pkgconfig.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cffi/pkgconfig.py b/cffi/pkgconfig.py index 6396958..2fa3a3e 100644 --- a/cffi/pkgconfig.py +++ b/cffi/pkgconfig.py @@ -38,7 +38,7 @@ def pkgconfig_kwargs (libs): # drop starting -I -L -l from cflags def dropILl (string): def _dropILl (string): - if string.startswith ("-I") or string.startswith ("-L") or string.startswith ("-l"): + if string.startswith (b"-I") or string.startswith (b"-L") or string.startswith (b"-l"): return string [2:] return [_dropILl (x) for x in string.split ()] |