Re: importlib changes from py3.7 to py3.8

2020-09-20 Thread Eko palypse
Hello Greg, thank you for your answer. I have checked it twice and the file is really empty. I even opened it with a hex editor - no content. BUT in order to create a bug ticket I tried to make a mcve and I didn't succeed. I copied the function (load_plugins) 1 to 1, but outside my program it works

Re: importlib changes from py3.7 to py3.8

2020-09-19 Thread Greg Ewing
On 19/09/20 7:51 am, Eko palypse wrote: ValueError: source code string cannot contain null bytes Any idea what happened here? Seems I've missed that __init__.py's aren't allowed to be empty anymore. Adding a single # solved the issue. I just tried importing a package with an empty __init__.

Re: importlib changes from py3.7 to py3.8

2020-09-19 Thread Eko palypse
Seems I've missed that __init__.py's aren't allowed to be empty anymore. Adding a single # solved the issue. Eren -- https://mail.python.org/mailman/listinfo/python-list