pep8 violation fix (shadowed identifier)

This commit is contained in:
Don Mitchell
2013-08-05 14:25:01 -04:00
parent 1abae6f093
commit 3ee6b3c095

View File

@@ -992,8 +992,8 @@ class TestInheritance(SplitModuleTest):
# This mocks the django.modulestore() function and is intended purely to disentangle
# the tests from django
def modulestore():
def load_function(path):
module_path, _, name = path.rpartition('.')
def load_function(engine_path):
module_path, _, name = engine_path.rpartition('.')
return getattr(import_module(module_path), name)
if SplitModuleTest.modulestore is None: