spotify/luigi — pull request #550 by berkerpeksag (2014-12-03 09:55:36+00:00)
Title: Set stacklevel to 2 in Derived and Copy helpers.

Currently, the warning messages are not helpful.

For example, without the patch applied the output is:

/home/berker/projects/luigi/luigi/util.py:209: DeprecationWarning: Derived is deprecated, please use the @inherits decorator instead
warnings.warn('Derived is deprecated, please use the @inherits decorator instead', DeprecationWarning)

With patch applied:

t.py:9: DeprecationWarning: Derived is deprecated, please use the @inherits decorator instead
class MyTask(luigi.util.Derived(AnotherTask)):