Code

Ticket #15662: module_loading.py.patch

File module_loading.py.patch, 491 bytes (added by Bradley Ayers <bradley.ayers@…>, 3 years ago)
  • django/utils/module_loading.py

     
    1212    except KeyError: 
    1313        pass 
    1414    for finder in sys.meta_path: 
    15         if finder.find_module(name): 
     15        if finder.find_module(nam, package): 
    1616            return True 
    1717    for entry in package.__path__:  # No __path__, then not a package. 
    1818        try: