Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[linux-2.6-microblaze.git] / scripts / sphinx-pre-install
index 828a861..b5f9fd5 100755 (executable)
@@ -728,8 +728,8 @@ sub check_needs()
                                        $need_virtualenv = 1;
                                }
                                if ($1 < 3) {
-                                       # Complain if it finds python2 (or worse)
-                                       printf "Warning: python$1 support is deprecated. Use it with caution!\n";
+                                       # Fail if it finds python2 (or worse)
+                                       die "Python 3 is required to build the kernel docs\n";
                                }
                        } else {
                                die "Warning: couldn't identify $python_cmd version!";