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/db/backends/creation.py | |
| 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/db/backends/creation.py')
| -rw-r--r-- | django/db/backends/creation.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/django/db/backends/creation.py b/django/db/backends/creation.py index fcc6ab7584..6ac55eb5ff 100644 --- a/django/db/backends/creation.py +++ b/django/db/backends/creation.py @@ -3,6 +3,7 @@ import time from django.conf import settings from django.db.utils import load_backend +from django.utils.six.moves import input # The prefix to put on the default database name when creating # the test database. @@ -330,7 +331,7 @@ class BaseDatabaseCreation(object): sys.stderr.write( "Got an error creating the test database: %s\n" % e) if not autoclobber: - confirm = raw_input( + confirm = input( "Type 'yes' if you would like to try deleting the test " "database '%s', or 'no' to cancel: " % test_database_name) if autoclobber or confirm == 'yes': |
