##// END OF EJS Templates
zope-interface: add compatibility with 3.13 compiler attributes...
Raphaël Gomès -
r52983:7862a5ac stable
parent child Browse files
Show More
@@ -352,7 +352,14 b' class InterfaceClass(Element, InterfaceB'
352 # Make sure that all recorded attributes (and methods) are of type
352 # Make sure that all recorded attributes (and methods) are of type
353 # `Attribute` and `Method`
353 # `Attribute` and `Method`
354 for name, attr in list(attrs.items()):
354 for name, attr in list(attrs.items()):
355 if name in ('__locals__', '__qualname__', '__annotations__'):
355 compiler_attributes = (
356 '__locals__',
357 '__qualname__',
358 '__annotations__',
359 '__firstlineno__',
360 '__static_attributes__',
361 )
362 if name in compiler_attributes:
356 # __locals__: Python 3 sometimes adds this.
363 # __locals__: Python 3 sometimes adds this.
357 # __qualname__: PEP 3155 (Python 3.3+)
364 # __qualname__: PEP 3155 (Python 3.3+)
358 # __annotations__: PEP 3107 (Python 3.0+)
365 # __annotations__: PEP 3107 (Python 3.0+)
General Comments 0
You need to be logged in to leave comments. Login now