Skip to content

Commit a278b14

Browse files
author
y-p
committed
BLD/DOC: fix conf.py on PY3
1 parent 092914a commit a278b14

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

doc/source/conf.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import sys
1414
import os
1515
import re
16-
from pandas.compat import u
16+
from pandas.compat import u, PY3
1717

1818
# If extensions (or modules to document with autodoc) are in another directory,
1919
# add these directories to sys.path here. If the directory is relative to the
@@ -78,7 +78,10 @@
7878
if ds:
7979
print("I'm about to DELETE the following:\n%s\n" % list(sorted(ds)))
8080
sys.stdout.write("WARNING: I'd like to delete those to speed up processing (yes/no)? ")
81-
answer = raw_input()
81+
if PY3:
82+
answer = input()
83+
else:
84+
answer = raw_input()
8285

8386
if answer.lower().strip() in ('y','yes'):
8487
for f in ds:

0 commit comments

Comments
 (0)