We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cc97b8 commit 30afd1fCopy full SHA for 30afd1f
haystack/management/commands/clear_index.py
@@ -2,6 +2,7 @@
2
from __future__ import unicode_literals
3
from optparse import make_option
4
import sys
5
+import six
6
7
from django.core.management.base import BaseCommand
8
@@ -34,7 +35,7 @@ def handle(self, **options):
34
35
print("WARNING: This will irreparably remove EVERYTHING from your search index in connection '%s'." % "', '".join(using))
36
print("Your choices after this are to restore from backups or rebuild via the `rebuild_index` command.")
37
- yes_or_no = raw_input("Are you sure you wish to continue? [y/N] ")
38
+ yes_or_no = six.moves.input("Are you sure you wish to continue? [y/N] ")
39
print
40
41
if not yes_or_no.lower().startswith('y'):
0 commit comments