[Twisted-Python] Adding DeprecationWarnings to twisted.internet.main

Jan. 13, 2003
6:43 a.m.
Hi, Is there any reason why we shouldn't add: warnings.warn( 'twisted.internet.main is deprecated. ' 'Use twisted.internet.reactor instead.', DeprecationWarning, stacklevel=2 ) to every function in twisted.internet.main (except perhaps installReactor)? At the very least, I think a PendingDeprecationWarning would be appropriate (they are invisible by default). There are still parts of Twisted that use this old module (e.g. t.e.adbapi), and I expect this will be the case until we have some nice big warnings jump up at us telling us to fix them :) -Andrew.
8096
Age (days ago)
8096
Last active (days ago)
2 comments
2 participants
participants (2)
-
Andrew Bennetts
-
Bob Ippolito