IMHO this is no Python error, it has always been legal to import an empty module.
puntila% rm foobar* && touch foobar.py puntila% python Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41) [GCC 4.3.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import foobar >>> foobar <module 'foobar' from 'foobar.py'> >>> dir(foobar) dir(foobar) ['__builtins__', '__doc__', '__file__', '__name__', '__package__'] >>> puntila% python2.5 Python 2.5.4 (r254:67916, Apr 4 2009, 17:55:16) [GCC 4.3.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import foobar >>> dir(foobar) ['__builtins__', '__doc__', '__file__', '__name__'] >>> puntila% -- AttributeError: 'module' object has no attribute 'split' https://bugs.launchpad.net/bugs/163736 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
