Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7b5d6ad

Browse files
committed
Backout 265d369ad3b9.
1 parent 7ec3e56 commit 7b5d6ad

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Lib/distutils/command/build_py.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,7 @@ def find_data_files(self, package, src_dir):
127127
# Each pattern has to be converted to a platform-specific path
128128
filelist = glob(os.path.join(src_dir, convert_path(pattern)))
129129
# Files that match more than one pattern are only added once
130-
files.extend([fn for fn in filelist if fn not in files
131-
and os.path.isfile(fn)])
130+
files.extend([fn for fn in filelist if fn not in files])
132131
return files
133132

134133
def build_package_data(self):

0 commit comments

Comments
 (0)