Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecator not working with self statement usage #1

Open
hydren opened this issue Sep 25, 2015 · 2 comments
Open

Deprecator not working with self statement usage #1

hydren opened this issue Sep 25, 2015 · 2 comments

Comments

@hydren
Copy link

hydren commented Sep 25, 2015

Hello, yesterday I was trying out the decorator and I found out that it was not working properly when I was using it with self statements. Every time I try to call a @deprecate decorated method from a self statement I get the following error:

<type 'exceptions.TypeError'> outer() takes exactly 1 argument (2 given)

2015-09-25

@antlong
Copy link
Owner

antlong commented Sep 25, 2015

You would have to modify it to take positional or keyword args. Right now
it only expects one arg, which is message.

On Fri, Sep 25, 2015 at 10:20 AM, Carlos F. M. Faruolo <
notifications@github.com> wrote:

Hello, yesterday I was trying out the decorator and I found out that it
was not working properly when I was using it with self statements. Every
time I try to call a @deprecate https://github.com/deprecate decorated
method from a self statement I get the following error:

outer() takes exactly 1 argument (2 given)

[image: 2015-09-25]
https://cloud.githubusercontent.com/assets/1821373/10102869/5154ddec-6377-11e5-9942-22b8637a1dea.png


Reply to this email directly or view it on GitHub
#1.

@hydren
Copy link
Author

hydren commented Sep 25, 2015

Thanks for the reply. I ended switching to python-deprecate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants