From cde820bd31e810d61cc2c9b09cc2ec7d5ddbf165 Mon Sep 17 00:00:00 2001 From: Marc Tamlyn Date: Thu, 16 May 2013 10:06:42 +0200 Subject: [PATCH] Make the example usage of import_by_path less confusing. Using import_by_path to import import_by_path is a really odd use case and makes the code example difficult to read. --- docs/ref/utils.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/ref/utils.txt b/docs/ref/utils.txt index a7d5b6690e4..14ae9aa9b88 100644 --- a/docs/ref/utils.txt +++ b/docs/ref/utils.txt @@ -659,11 +659,11 @@ Functions for working with Python modules. wrong. For example:: from django.utils.module_loading import import_by_path - import_by_path = import_by_path('django.utils.module_loading.import_by_path') + ImproperlyConfigured = import_by_path('django.core.exceptions.ImproperlyConfigured') is equivalent to:: - from django.utils.module_loading import import_by_path + from django.core.exceptions import ImproperlyConfigured ``django.utils.safestring`` ===========================