summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Drop explicit DeprecationWarnings for "class advice" APISTres Seaver2012-05-222-28/+9
| | | | | | | These APIs are still deprecated under Python 2.x, and still raise an exception under Python 3.x, but no longer cause a warning to be emitted under Python 2.x.
* further simplify some attribute lookupsFred Drake2012-04-063-4/+4
|
* Drop unneeded compatibility shims for method / function attributes.Tres Seaver2012-04-064-18/+5
| | | | | '__code__', '__defaults__', '__func__', and '__self__' all work fine on Python 2.6+.
* Deprecated the "class advice" APIs from ``zope.interface.declarations``.Tres Seaver2012-04-062-47/+98
| | | | | | | | | Code which uses the deprecated APIs will not work as expected under Py3k. Instead of ``implements``, ``implementsOnly``, or ``classProvides``, prefer the equivalent class decorators: ``@implementer``, ``@implementer_only``, and ``@provider``.
* Improve the error raised by the class advice APIs when invoked under Py3k.Tres Seaver2012-04-061-3/+14
|
* Re-silence Py3k whines.Tres Seaver2012-04-061-31/+44
|
* Close Py3k coverage gap to absolute minimum.Tres Seaver2012-04-066-36/+206
| | | | | We *can't* test the classAdvice stuff under Py3k. Need to deprecate it before the 4.0 release.
* Coverage under Py3k.Tres Seaver2012-04-062-6/+3
|
* 100% coverage under Python 2.x.Tres Seaver2012-04-061-0/+67
|
* Move commented-out doctest snippets into API docs as real snippets.Tres Seaver2012-04-063-710/+74
|
* Guard against possible failure under hash-randomizing Pythons.Tres Seaver2012-04-051-2/+2
|
* Silence Py3k whining.Tres Seaver2012-04-053-16/+16
|
* Restore 'adapter_hooks' after patching for test purposes.Tres Seaver2012-04-051-3/+7
|
* The C impl. caches BuiltinImmplentationSpecifications too early.Tres Seaver2012-04-051-12/+33
| | | | | So, we need to monkey-patch its contents, rather than stuff a new dict into the module.
* PyPy coverage tweak.Tres Seaver2012-04-041-1/+1
|
* Merge Py3k w/o 2to3 work.Tres Seaver2012-04-0415-1082/+1155
|
* Merge from LP branch.Tres Seaver2012-03-2633-5791/+8227
|
* Avoid exceptions due to tne new ``__qualname__`` attribute added in Python 3.3 Tres Seaver2012-02-161-3/+5
| | | | | | | See PEP 3155 for rationale. Thanks to Antoine Pitrou for the patch. Fixes LP #900906.
* typo implementor->implementerBrian Sutherland2011-10-093-5/+5
|
* Merge chrism-componentregistry branch: Chris McDonough2011-09-153-2/+2035
| | | | | svn merge -r122752:122809 svn+ssh://svn.zope.org/repos/main/zope.interface/branches/chrism-componentregistry
* Fix test failure under 'python setup.py test' in new test for '__hash__'.Tres Seaver2011-08-121-0/+2
| | | | | Fixes LP #825249.
* Fix Python 2.5 incompatibility introduced in new tests of ``__hash__``.Tres Seaver2011-08-121-1/+6
|
* Work around buggy behavior in some subclasses of `InterfaceClass``Tres Seaver2011-08-113-8/+60
| | | | | | | | | Some sublcasses invoke '__hash__' before initializing '__module__' and '__name__'. The workaround returns a fixed constant hash in such cases, and issues a UserWarning. Addresses LP #811792.
* Revert r122462 after updating zope.app.interface.Tres Seaver2011-08-111-2/+1
|
* Fix a regression introduced in 3.6.4, that made one zope.app.interface test failGediminas Paulauskas2011-08-041-1/+2
|
* - Fix testing deprecation warnings issued when tested under Py3K.Chris McDonough2011-07-213-70/+88
|
* LP 804951: InterfaceClass instances were unhashable under Python 3.x.Tres Seaver2011-07-052-0/+12
|
* Correct comparison of interfaces from different modules but with the same name.Tres Seaver2011-05-263-9/+59
| | | | | Fixes LP #570942.
* Fixes for small issues when running tests under Python 3.2 using zope.testrunnerBrian Sutherland2011-04-292-2/+5
|
* Specify return value type for C optimizations module init under Python 3.Tres Seaver2010-11-151-4/+1
| | | | | | | | | | | Undeclared value caused warnings, and segfaults on some 64 bit architectures. Also, remove redundant conditional define of PyMODINIT_FUNC: it is present in 'pyport.h' on all Python versions we care about, and the conditional version here was wrong for Python 3. Fixes LP # 675064.
* Remove CVS-era Id fossils.Tres Seaver2010-06-0331-64/+2
|
* Fix compiler warnings under GCC 4.3.3.Tres Seaver2010-05-021-2/+2
|
* Clear the cache used by ``Specificaton.get`` inside ``Specification.changed``.Tres Seaver2010-04-132-0/+30
| | | | | | | Fixes LP #185974: Thanks to Jacob Holm for the patch.
* Scrub trailing ws, use canonical suite-generation form.Tres Seaver2010-04-131-23/+17
|
* Cleaning up imports, mostly in tests, some duplicates created by my merge. ↵Lennart Regebro2010-04-118-28/+22
| | | | Pyflakes is happier now, but we do a lot of things that confuses it.
* Merge of regebro-python3 branch, adding Python 3.1 compatibility\!Lennart Regebro2010-04-0919-209/+363
|
* Comply with repository policy.Tres Seaver2010-04-0634-34/+34
|
* Fixed typoVincent Fretin2010-01-021-1/+1
|
* Use the standard Python doctest module instead of zope.testing.doctest, whichFabio Tranchitella2009-12-236-11/+14
| | | | | has been deprecated.
* Fixed unit tests replacing zope.testing.doctestunit with doctest: it has beenFabio Tranchitella2009-12-223-5/+4
| | | | | deprecated.
* Fix typo.Martijn Faassen2009-12-181-1/+1
|
* Revert incorrect copyright header update.Christian Theune2009-12-1734-34/+34
|
* Cleanups: make pyflakes happy.Tres Seaver2009-12-171-13/+20
|
* Clean out module-scope imports of MUT, other cruft.Tres Seaver2009-12-171-78/+127
|
* Fix an edge case: make providedBy() work when a class has '__provides__' inWolfgang Schnerring2009-12-083-2/+21
| | | | | its __slots__ (see http://thread.gmane.org/gmane.comp.web.zope.devel/22490)
* Updating copyright header after transfer of ownership to the Zope FoundationChristian Theune2009-11-0234-34/+34
|
* clean up some comments and some whitespaceGary Poster2009-10-312-45/+41
|
* revert accidental checkin that should have been on a branchWolfgang Schnerring2009-09-126-683/+0
|
* copy fixers pertaining to zope.interface into the zope.interface treeWolfgang Schnerring2009-09-126-0/+683
|
* clean up registry structures to avoid unecessary references to globalFred Drake2009-06-302-5/+97
| | | | | | objects; this makes it easier for those objects to be removed from apps once relevant registrations are removed