summaryrefslogtreecommitdiff
path: root/src/zope/security/zcml.py
Commit message (Collapse)AuthorAgeFilesLines
* Simplify _compat.py now that we only run on newer PythonsJason Madden2017-09-081-21/+21
| | | | | | | | | | | | | | | | | | - We have u'literals' so we don't need a _u() function. For the record the Emacs replacement regex was `_u(\(['"]\)\([^)]*\)\1) -> u\1\2\1`. Amazingly, I typed that right on the first try. A few things were only used in one (test) file or function, so it was better to keep the use, if any, local and out of the "public" api: - We can use io.StringIO everywhere and it's fast. It was only imported in one file anyway. - We can just import pickle. It was only imported in one file anyway. - TEXT was only used in one test function, `type(u'')` is just as clear (especially since the usual name is `text_type`). - reload was only used in one test function, so move the definition there.
* Py3k: remove Py3 syntax errors.Tres Seaver2013-02-131-12/+13
|
* Normalize imports.Tres Seaver2013-02-121-5/+8
|
* Convert doctests in 'zope.security.zcml' into Sphinx doctest snppets.Tres Seaver2012-12-231-30/+0
| | | | They are still tested under 'tox -e docs'.
* Drop support for Python 2.4 and 2.5.Tres Seaver2012-05-171-2/+2
| | | | | | | | | | | | | Replace deprecated 'zope.component.adapts' usage with equivalent 'zope.component.adapter' decorator. Replace deprecated 'zope.interface.classProvides' usage with equivalent 'zope.interface.provider' decorator. Replace deprecated 'zope.interface.implements' usage with equivalent 'zope.interface.implementer' decorator.
* Remove CVS-era Id fossils.Tres Seaver2010-06-031-2/+0
|
* Conform to repository policy.Tres Seaver2010-05-051-1/+1
|
* Moving code to satellite.Christian Theune2007-05-031-0/+146