Skip to content

Conversation

@damianam
Copy link
Member

Just to have a cleaner file for another PR on top

@boegel boegel added this to the 3.2.0 milestone Feb 24, 2017

def __init__(self, *args, **kwargs):
"""ModuleGeneratorTcl constructor."""
super(ModuleGeneratorTcl, self).__init__(*args, **kwargs)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@damianam this is useless, if there's nothing to do in the constructor, then don't override it

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, at least now it is consistently useless. Before one of the classes had an useless constructor and one didn't. I included it in both because I thought that maybe you had an useless constructor there for some obscure reason I didn't know about...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, there is no reason, so better clean up the empty constructor in ModuleGeneratorLua instead (and drop this one here).

@boegel
Copy link
Member

boegel commented Feb 24, 2017

@damianam It's hard to tell from the diff, but this is just literally moving stuff around without any changes to the code in the methods, right?

One thing I'm slightly worried about is that this is going to clash with #2110 which adds a set_as_default method in module_generator.py. As far as I can tell, that's the only PR it would clash with.

I expect that resolving the conflict here rather than in #2110 is going to be easier, so I'll get #2110 merged first, and then help out if needed with resolving the conflict in here (if needed).

@damianam
Copy link
Member Author

Merging #2110 seems reasonable, but that means that this PR and the one that was coming after this one will have to wait do don't do things multiple times. Which is fine for me TBH, just a bit of pain to do things twice.

@boegel
Copy link
Member

boegel commented Feb 27, 2017

@damianam I hope we can get #2110 merged soon, it's up to @victorusu now to tackle the last remaining remarks there

@boegel boegel changed the title Alphabetically sorted module generator alphabetically sort functions and methods in module_generator module Mar 24, 2017
@boegel
Copy link
Member

boegel commented Mar 24, 2017

Did some checks to confirm that this is just shuffling things around without making changes, tests confirm, so going in, thanks for the effort @damianam!

@boegel boegel merged commit cebd350 into easybuilders:develop Mar 24, 2017
@damianam damianam deleted the clean_module_generator branch July 12, 2017 09:50
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

Successfully merging this pull request may close these issues.

2 participants