summaryrefslogtreecommitdiff
path: root/django/core
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2012-08-08 19:08:05 +0200
committerClaude Paroz <claude@2xlibre.net>2012-08-08 19:53:11 +0200
commitb8e49d70f2bbbb9008dbbf9d8b0dee46dcf25fa6 (patch)
tree03dc8a308b318573351616c42f4c74d370f6ffea /django/core
parentb1517a310a0a9aa416bc479397d5a7b402be64e2 (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/core')
-rw-r--r--django/core/management/commands/flush.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/django/core/management/commands/flush.py b/django/core/management/commands/flush.py
index ac7b7a3599..b8b78434ce 100644
--- a/django/core/management/commands/flush.py
+++ b/django/core/management/commands/flush.py
@@ -7,6 +7,7 @@ from django.core.management.base import NoArgsCommand, CommandError
from django.core.management.color import no_style
from django.core.management.sql import sql_flush, emit_post_sync_signal
from django.utils.importlib import import_module
+from django.utils.six.moves import input
class Command(NoArgsCommand):
@@ -45,7 +46,7 @@ class Command(NoArgsCommand):
sql_list = sql_flush(self.style, connection, only_django=True, reset_sequences=reset_sequences)
if interactive:
- confirm = raw_input("""You have requested a flush of the database.
+ confirm = input("""You have requested a flush of the database.
This will IRREVERSIBLY DESTROY all data currently in the %r database,
and return each table to the state it was in after syncdb.
Are you sure you want to do this?