summaryrefslogtreecommitdiff
path: root/cffi
diff options
context:
space:
mode:
authorMichal Vyskocil <michal.vyskocil@gmail.com>2017-05-25 10:02:18 +0200
committerMichal Vyskocil <michal.vyskocil@gmail.com>2017-05-25 10:02:18 +0200
commitfed468bcee7be3ce005321cbcd97fd1d1a64b567 (patch)
tree80bb4b76236ed7127a7f36b3affade7471936541 /cffi
parent094ebd4afb3cae6f9d404fe8d295ecfd8e5600de (diff)
downloadcffi-fed468bcee7be3ce005321cbcd97fd1d1a64b567.tar.gz
code not compatible with python3
use bytes instead of strings
Diffstat (limited to 'cffi')
-rw-r--r--cffi/pkgconfig.py2
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 ()]