#24 add stacklevel argument for nicer deprecation messages

MySQLdb
closed
Andy Dustman
MySQLdb (53)
5
2012-09-19
2005-04-08
Kyle VanderBeek
No

This patch makes the deprecation warnings issued for
non-standard functions mention the caller instead of
the deprecated function being called.

This is for branch-1-2, related to bug 1037468.

Discussion

  • change deprecation warning stacklevel that will be printed.

     
  • Andy Dustman
    Andy Dustman
    2005-04-10

    Logged In: YES
    user_id=71372

    Your patch, or a variation, has been applied to the current CVS tree.