[Interface-dev] possible bug in zope/interface/declarations.py
Jonathan Simms
slyphon at divmod.com
Sat Jun 12 04:05:14 EDT 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hey all,
I was messing around and i think i found a small bug in declarations.py.
I would submit a patch, but I'm not really sure what the correction
should be.
at line 990:
~ raise TypeError(name+" can be used only from a class definition.")
only the variable 'name' isn't defined in the scope of classProvides
this is as of revision 25371.
here is an interpreter session that causes the bug:
|>> import zope.interface as zi
|>> class FooBar:
... pass
...
|>> zi.classProvides(FooBar)
Traceback (most recent call last):
~ File "<stdin>", line 1, in ?
~ File
"/home/slyphon/Projects/Twisted/trial-1/zope/interface/declarations.py",
line 990, in classProvides
~ raise TypeError(name+" can be used only from a class definition.")
NameError: global name 'name' is not defined
|>>
If there is an issue tracker where I should file this bug, please just
point me in the right direction :).
- -Jonathan Simms
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFAyrk6FARZQEMGIlgRAvxkAKCGS/Mc3jsVrwgqbV4d7StG3+GBjgCdERul
AuZDMpdmxsZROdO74JlreMk=
=s+cb
-----END PGP SIGNATURE-----
More information about the Interface-dev
mailing list