Skip to content

Commit 30afd1f

Browse files
committed
Fixed a missed raw_input call on Python 3
1 parent 7cc97b8 commit 30afd1f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

haystack/management/commands/clear_index.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from __future__ import unicode_literals
33
from optparse import make_option
44
import sys
5+
import six
56

67
from django.core.management.base import BaseCommand
78

@@ -34,7 +35,7 @@ def handle(self, **options):
3435
print("WARNING: This will irreparably remove EVERYTHING from your search index in connection '%s'." % "', '".join(using))
3536
print("Your choices after this are to restore from backups or rebuild via the `rebuild_index` command.")
3637

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] ")
3839
print
3940

4041
if not yes_or_no.lower().startswith('y'):

0 commit comments

Comments
 (0)