diff --git a/backend-sample-app.py b/backend-sample-app.py
index 367fd54f68315fd5eb4e7e80bbbbfa3d5b627102..88b4a0de715bc3765838226ed64299cd73e893ed 100755
--- a/backend-sample-app.py
+++ b/backend-sample-app.py
@@ -1,5 +1,4 @@
 #!/bin/sh
-''''which python2 >/dev/null && exec python2 "$0" "$@" # '''
 ''''which python  >/dev/null && exec python  "$0" "$@" # '''
 
 # Copyright (C) 2014-2015 Nginx, Inc.
diff --git a/nginx-ldap-auth-daemon.py b/nginx-ldap-auth-daemon.py
index bdfafff7aa3544a460f0c4b3d842f385e84c912a..55582d51d7253fd2725532adea0d865f0f53d4f7 100755
--- a/nginx-ldap-auth-daemon.py
+++ b/nginx-ldap-auth-daemon.py
@@ -1,6 +1,5 @@
 #!/bin/sh
 ''''[ -z $LOG ] && export LOG=/dev/stdout # '''
-''''which python2 >/dev/null && exec python2 -u "$0" "$@" >> $LOG 2>&1 # '''
 ''''which python  >/dev/null && exec python  -u "$0" "$@" >> $LOG 2>&1 # '''
 
 # Copyright (C) 2014-2015 Nginx, Inc.