From 8f0b9415014436ff59d916be6ce2673961f30bf1 Mon Sep 17 00:00:00 2001
From: Georg Brandl <georg@python.org>
Date: Mon, 4 Nov 2013 07:43:41 +0100
Subject: [PATCH] Backout 265d369ad3b9.

---
 Lib/distutils/command/build_py.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/Lib/distutils/command/build_py.py b/Lib/distutils/command/build_py.py
index d48eb69900e..1371b3d6ff9 100644
--- a/Lib/distutils/command/build_py.py
+++ b/Lib/distutils/command/build_py.py
@@ -127,8 +127,7 @@ class build_py (Command):
             # Each pattern has to be converted to a platform-specific path
             filelist = glob(os.path.join(src_dir, convert_path(pattern)))
             # Files that match more than one pattern are only added once
-            files.extend([fn for fn in filelist if fn not in files
-                and os.path.isfile(fn)])
+            files.extend([fn for fn in filelist if fn not in files])
         return files
 
     def build_package_data(self):
-- 
2.30.9