Blender 2.8 can no longer import module from Textblock just downloaded todays Blender 2.8 build and it seems I can no longer import a function from another Textblock. Works well on a build from April 5th (haven't updated since then).

This simple example is not working in todays build:
Solved: there was an API change. Thanks to @alyawn for posting the solution here

This is how it works now:


something = bpy.data.texts['something.py'].as_module()