Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r1045:f3157378d8d2
Date: 2012-11-17 17:23 +0100
http://bitbucket.org/cffi/cffi/changeset/f3157378d8d2/

Log:    Fix: this assert was not checking anything.

diff --git a/cffi/cparser.py b/cffi/cparser.py
--- a/cffi/cparser.py
+++ b/cffi/cparser.py
@@ -202,7 +202,7 @@
                 raise api.FFIError(
                     "multiple declarations of %s (for interactive usage, "
                     "try cdef(xx, override=True))" % (name,))
-        assert name != '__dotdotdot__'
+        assert '__dotdotdot__' not in name.split()
         self._declarations[name] = obj
 
     def _get_type_pointer(self, type, const=False):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to