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

get_code mandatory in children of SourceFileLoader ? #40

Open
asmodehn opened this issue May 15, 2018 · 0 comments
Open

get_code mandatory in children of SourceFileLoader ? #40

asmodehn opened this issue May 15, 2018 · 0 comments

Comments

@asmodehn
Copy link
Owner

I just noticed this, which is a bit troubling :

class LarkGrammarLoader(filefinder2.machinery.SourceFileLoader):
    # TODO : investigate : removing get_code breaks loader !!!
[...]

Somehow it seems get_code is necessary for other methods to be found and used...
Probably should dig more into https://www.python.org/dev/peps/pep-0302/

There might be something a little different between python3 implementation and filefinder here...

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