diff --git a/contrib/setup3k.py b/contrib/setup3k.py
index ef0b8b1bcd63ee0749525378007e1fa1ded5a818_Y29udHJpYi9zZXR1cDNrLnB5..4c50552fc9bcc1134d027d0a300b7296b41d43c7_Y29udHJpYi9zZXR1cDNrLnB5 100644
--- a/contrib/setup3k.py
+++ b/contrib/setup3k.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 #
 # This is an experimental py3k-enabled mercurial setup script.
 #
diff --git a/contrib/shrink-revlog.py b/contrib/shrink-revlog.py
index ef0b8b1bcd63ee0749525378007e1fa1ded5a818_Y29udHJpYi9zaHJpbmstcmV2bG9nLnB5..4c50552fc9bcc1134d027d0a300b7296b41d43c7_Y29udHJpYi9zaHJpbmstcmV2bG9nLnB5 100644
--- a/contrib/shrink-revlog.py
+++ b/contrib/shrink-revlog.py
@@ -1,5 +1,3 @@
-#!/usr/bin/env python
-
 """\
 reorder a revlog (the manifest by default) to save space
 
diff --git a/doc/hgmanpage.py b/doc/hgmanpage.py
index ef0b8b1bcd63ee0749525378007e1fa1ded5a818_ZG9jL2hnbWFucGFnZS5weQ==..4c50552fc9bcc1134d027d0a300b7296b41d43c7_ZG9jL2hnbWFucGFnZS5weQ== 100644
--- a/doc/hgmanpage.py
+++ b/doc/hgmanpage.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 # -*- coding: utf-8 -*-
 # $Id: manpage.py 6110 2009-08-31 14:40:33Z grubert $
 # Author: Engelbert Gruber <grubert@users.sourceforge.net>
diff --git a/i18n/polib.py b/i18n/polib.py
index ef0b8b1bcd63ee0749525378007e1fa1ded5a818_aTE4bi9wb2xpYi5weQ==..4c50552fc9bcc1134d027d0a300b7296b41d43c7_aTE4bi9wb2xpYi5weQ== 100644
--- a/i18n/polib.py
+++ b/i18n/polib.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 # -*- coding: utf-8 -*-
 # no-check-code
 #
diff --git a/setup.py b/setup.py
index ef0b8b1bcd63ee0749525378007e1fa1ded5a818_c2V0dXAucHk=..4c50552fc9bcc1134d027d0a300b7296b41d43c7_c2V0dXAucHk= 100644
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 #
 # This is the mercurial setup script.
 #
diff --git a/tests/test-bdiff.py b/tests/test-bdiff.py
index ef0b8b1bcd63ee0749525378007e1fa1ded5a818_dGVzdHMvdGVzdC1iZGlmZi5weQ==..4c50552fc9bcc1134d027d0a300b7296b41d43c7_dGVzdHMvdGVzdC1iZGlmZi5weQ== 100644
--- a/tests/test-bdiff.py
+++ b/tests/test-bdiff.py
@@ -1,5 +1,3 @@
-#!/usr/bin/env python
-
 import struct
 from mercurial import bdiff, mpatch
 
diff --git a/tests/test-demandimport.py b/tests/test-demandimport.py
index ef0b8b1bcd63ee0749525378007e1fa1ded5a818_dGVzdHMvdGVzdC1kZW1hbmRpbXBvcnQucHk=..4c50552fc9bcc1134d027d0a300b7296b41d43c7_dGVzdHMvdGVzdC1kZW1hbmRpbXBvcnQucHk= 100644
--- a/tests/test-demandimport.py
+++ b/tests/test-demandimport.py
@@ -1,5 +1,3 @@
-#!/usr/bin/env python
-
 from mercurial import demandimport
 demandimport.enable()
 
diff --git a/tests/test-hg-parseurl.py b/tests/test-hg-parseurl.py
index ef0b8b1bcd63ee0749525378007e1fa1ded5a818_dGVzdHMvdGVzdC1oZy1wYXJzZXVybC5weQ==..4c50552fc9bcc1134d027d0a300b7296b41d43c7_dGVzdHMvdGVzdC1oZy1wYXJzZXVybC5weQ== 100644
--- a/tests/test-hg-parseurl.py
+++ b/tests/test-hg-parseurl.py
@@ -1,5 +1,3 @@
-#!/usr/bin/env python
-
 from mercurial.hg import parseurl
 
 def testparse(url, branch=[]):
diff --git a/tests/test-hybridencode.py b/tests/test-hybridencode.py
index ef0b8b1bcd63ee0749525378007e1fa1ded5a818_dGVzdHMvdGVzdC1oeWJyaWRlbmNvZGUucHk=..4c50552fc9bcc1134d027d0a300b7296b41d43c7_dGVzdHMvdGVzdC1oeWJyaWRlbmNvZGUucHk= 100644
--- a/tests/test-hybridencode.py
+++ b/tests/test-hybridencode.py
@@ -1,5 +1,3 @@
-#!/usr/bin/env python
-
 from mercurial import store
 
 auxencode = lambda f: store._auxencode(f, True)
diff --git a/tests/test-minirst.py b/tests/test-minirst.py
index ef0b8b1bcd63ee0749525378007e1fa1ded5a818_dGVzdHMvdGVzdC1taW5pcnN0LnB5..4c50552fc9bcc1134d027d0a300b7296b41d43c7_dGVzdHMvdGVzdC1taW5pcnN0LnB5 100644
--- a/tests/test-minirst.py
+++ b/tests/test-minirst.py
@@ -1,5 +1,3 @@
-#!/usr/bin/env python
-
 from pprint import pprint
 from mercurial import minirst
 
diff --git a/tests/test-ui-color.py b/tests/test-ui-color.py
index ef0b8b1bcd63ee0749525378007e1fa1ded5a818_dGVzdHMvdGVzdC11aS1jb2xvci5weQ==..4c50552fc9bcc1134d027d0a300b7296b41d43c7_dGVzdHMvdGVzdC11aS1jb2xvci5weQ== 100644
--- a/tests/test-ui-color.py
+++ b/tests/test-ui-color.py
@@ -1,5 +1,3 @@
-#!/usr/bin/env python
-
 from hgext import color
 
 # ensure errors aren't buffered
diff --git a/tests/test-ui-config.py b/tests/test-ui-config.py
index ef0b8b1bcd63ee0749525378007e1fa1ded5a818_dGVzdHMvdGVzdC11aS1jb25maWcucHk=..4c50552fc9bcc1134d027d0a300b7296b41d43c7_dGVzdHMvdGVzdC11aS1jb25maWcucHk= 100644
--- a/tests/test-ui-config.py
+++ b/tests/test-ui-config.py
@@ -1,5 +1,3 @@
-#!/usr/bin/env python
-
 from mercurial import ui, dispatch, error
 
 testui = ui.ui()
diff --git a/tests/test-ui-verbosity.py b/tests/test-ui-verbosity.py
index ef0b8b1bcd63ee0749525378007e1fa1ded5a818_dGVzdHMvdGVzdC11aS12ZXJib3NpdHkucHk=..4c50552fc9bcc1134d027d0a300b7296b41d43c7_dGVzdHMvdGVzdC11aS12ZXJib3NpdHkucHk= 100644
--- a/tests/test-ui-verbosity.py
+++ b/tests/test-ui-verbosity.py
@@ -1,5 +1,3 @@
-#!/usr/bin/env python
-
 import os
 from mercurial import ui
 
diff --git a/tests/test-url.py b/tests/test-url.py
index ef0b8b1bcd63ee0749525378007e1fa1ded5a818_dGVzdHMvdGVzdC11cmwucHk=..4c50552fc9bcc1134d027d0a300b7296b41d43c7_dGVzdHMvdGVzdC11cmwucHk= 100644
--- a/tests/test-url.py
+++ b/tests/test-url.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 import sys
 
 def check(a, b):