Skip to content
Snippets Groups Projects
Commit 7862a5ac authored by Raphaël Gomès's avatar Raphaël Gomès
Browse files

zope-interface: add compatibility with 3.13 compiler attributes

We could follow-up with an actual vendoring update from the newest version
of zope-interface in the new cycle since we're dropping 3.7 and down.

However we are also in the process of replacing zope-interface with Protocol, so
hopefully we can simply drop the zope-interface vendoring.
parent 0b17a057
No related branches found
No related tags found
2 merge requests!1028merge stable into default,!1020Raphaël python 3.13 fixes
Pipeline #90459 passed
......@@ -352,7 +352,14 @@
# Make sure that all recorded attributes (and methods) are of type
# `Attribute` and `Method`
for name, attr in list(attrs.items()):
if name in ('__locals__', '__qualname__', '__annotations__'):
compiler_attributes = (
'__locals__',
'__qualname__',
'__annotations__',
'__firstlineno__',
'__static_attributes__',
)
if name in compiler_attributes:
# __locals__: Python 3 sometimes adds this.
# __qualname__: PEP 3155 (Python 3.3+)
# __annotations__: PEP 3107 (Python 3.0+)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment