Author: Stefano Rivera <[email protected]>
Branch:
Changeset: r1172:25579465c12b
Date: 2013-02-23 14:49 +0200
http://bitbucket.org/cffi/cffi/changeset/25579465c12b/
Log: That could have been simpler
diff --git a/cffi/verifier.py b/cffi/verifier.py
--- a/cffi/verifier.py
+++ b/cffi/verifier.py
@@ -73,9 +73,9 @@
# kill both the .so extension and the other .'s, as introduced
# by Python 3: 'basename.cpython-33m.so'
basename = basename.split('.', 1)[0]
- # kill the _d added in Python 2 debug builds
+ # and the _d added in Python 2 debug builds
if basename.endswith('_d'):
- basename = basename.rsplit('_', 1)[0]
+ basename = basename[:-2]
return basename
def get_extension(self):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit