diff --git a/os_doc_tools/doctest.py b/os_doc_tools/doctest.py
index a4e963bc..f18af89a 100755
--- a/os_doc_tools/doctest.py
+++ b/os_doc_tools/doctest.py
@@ -1150,7 +1150,7 @@ def generate_index_file():
(path, f, f))
index_file.write('
\n')
- if os.path.is_file(os.path.join(get_publish_path(), 'www-index.html')):
+ if os.path.isfile(os.path.join(get_publish_path(), 'www-index.html')):
index_file.write('
\n')
index_file.write('list of generated '
'WWW pages\n')