diff options
| author | Claude Paroz <claude@2xlibre.net> | 2012-08-08 19:08:05 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2012-08-08 19:53:11 +0200 |
| commit | b8e49d70f2bbbb9008dbbf9d8b0dee46dcf25fa6 (patch) | |
| tree | 03dc8a308b318573351616c42f4c74d370f6ffea /django/contrib/contenttypes | |
| parent | b1517a310a0a9aa416bc479397d5a7b402be64e2 (diff) | |
[py3] Replaced raw_input by input
The six addition has been borrowed from:
https://bitbucket.org/gutworth/six/changeset/733ef740
Diffstat (limited to 'django/contrib/contenttypes')
| -rw-r--r-- | django/contrib/contenttypes/management.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
