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

EUPS source full of staticmethod workarounds #108

Open
timj opened this issue Dec 20, 2016 · 0 comments
Open

EUPS source full of staticmethod workarounds #108

timj opened this issue Dec 20, 2016 · 0 comments

Comments

@timj
Copy link
Collaborator

timj commented Dec 20, 2016

I've just noticed that the EUPS source files are full of this construct:

    # @staticmethod   # requires python 2.4
    def canHandle(source):
        return False;
    canHandle = staticmethod(canHandle)  # should work as of python 2.2

Now that we only support 2.6 and newer it would seem that a clean up pass would be very useful to remove all the old cruft. This would make the code more readable.

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

1 participant