diff options
author | Michal Vyskocil <michal.vyskocil@gmail.com> | 2019-01-10 13:30:09 +0100 |
---|---|---|
committer | Michal Vyskocil <michal.vyskocil@gmail.com> | 2019-01-10 13:30:09 +0100 |
commit | 32ab869ab54d5ac6da50ce7c159e17789fe43d1c (patch) | |
tree | d3f8adb5845c133f0b4bc52e50f94495ba59a3f1 /cffi/pkgconfig.py | |
parent | 8c32e1dc8d053ce26153e47ee273188d70606939 (diff) | |
download | cffi-32ab869ab54d5ac6da50ce7c159e17789fe43d1c.tar.gz |
P: cffi must be compatible with 3.2
S: can't use u prefixes, as it is syntax error there
Diffstat (limited to 'cffi/pkgconfig.py')
-rw-r--r-- | cffi/pkgconfig.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cffi/pkgconfig.py b/cffi/pkgconfig.py index 215a119..331d81b 100644 --- a/cffi/pkgconfig.py +++ b/cffi/pkgconfig.py @@ -62,7 +62,7 @@ def flags(libs): Raises * PkgConfigNotFound if pkg-config is not installed - * PkgConfigModuleNotFound if requested module not found + * PkgConfigModuleNotFoun if requested module not found * PkgConfigModuleVersionNotFound if requested version does not match * PkgConfigError for all other errors """ @@ -76,18 +76,18 @@ def flags(libs): # drop starting -I -L -l from cflags def dropILl(string): def _dropILl(string): - if string.startswith(u"-I") or string.startswith(u"-L") or string.startswith(u"-l"): + if string.startswith("-I") or string.startswith("-L") or string.startswith("-l"): return string [2:] return [_dropILl(x) for x in string.split()] # convert -Dfoo=bar to list of tuples [("foo", "bar")] expected by cffi def macros(string): def _macros(string): - return tuple(string [2:].split(u"=", 2)) - return [_macros(x) for x in string.split() if x.startswith(u"-D")] + return tuple(string [2:].split("=", 2)) + return [_macros(x) for x in string.split() if x.startswith("-D")] def drop_macros(string): - return [x for x in string.split() if not x.startswith(u"-D")] + return [x for x in string.split() if not x.startswith("-D")] # return kwargs for given libname def kwargs(libname): |