def get_mod_func(callback):
    # Converts 'django.views.news.stories.story_detail' to
    # ['django.views.news.stories', 'story_detail']
    try:
        dot = callback.rindex('.')
    except __HOLE__:
        return callback, ''
    return callback[:dot], callback[dot+1:]
dataset/ETHPy150Open dcramer/django-compositepks/django/core/urlresolvers.py/get_mod_func