-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

vyshakh krishnan wrote:
> Hi Everyone,
> 
> 
> The deprecation warning while testing Product module is
> 
> /home/zope/ztrunk25/lib/python/OFS/SimpleItem.py:248:
> DeprecationWarning: raising a string exception is deprecated
>   raise error_type, v, tb
> 
> 
> 
> Is it enough to define a new sub class of Exception which accept
> error_type,v as arguments and just print these messages to fix this
> warning?

First, remove the forced conversion of 'error_type' to a string.  Does
that make the warning go away?

> Many of the the warnings in other modules are found similar to this warning.

Please enumerate them.


Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          [EMAIL PROTECTED]
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIjhJj+gerLs4ltQ4RArauAKDDLVHNc936dYCXUI4v9Ec22/sbfQCfcMHq
+N2ioO1db1R86IYZAFONNSY=
=cLbS
-----END PGP SIGNATURE-----

_______________________________________________
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )

Reply via email to