From b8e49d70f2bbbb9008dbbf9d8b0dee46dcf25fa6 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Wed, 8 Aug 2012 19:08:05 +0200 Subject: [py3] Replaced raw_input by input The six addition has been borrowed from: https://bitbucket.org/gutworth/six/changeset/733ef740 --- django/contrib/contenttypes/management.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'django/contrib/contenttypes') diff --git a/django/contrib/contenttypes/management.py b/django/contrib/contenttypes/management.py index 11ca7e4763..9f287d494b 100644 --- a/django/contrib/contenttypes/management.py +++ b/django/contrib/contenttypes/management.py @@ -2,6 +2,7 @@ from django.contrib.contenttypes.models import ContentType from django.db.models import get_apps, get_models, signals from django.utils.encoding import smart_text from django.utils import six +from django.utils.six.moves import input def update_contenttypes(app, created_models, verbosity=2, **kwargs): """ @@ -49,7 +50,7 @@ def update_contenttypes(app, created_models, verbosity=2, **kwargs): ' %s | %s' % (ct.app_label, ct.model) for ct in to_remove ]) - ok_to_delete = raw_input("""The following content types are stale and need to be deleted: + ok_to_delete = input("""The following content types are stale and need to be deleted: %s -- cgit v1.3