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

Skip to content

Commit e564278

Browse files
committed
Expect a tuple (dest_name, copied) from 'copy_file()'.
1 parent ff50ad5 commit e564278

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Lib/distutils/command/install_data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def run (self):
5252
self.warn("setup script did not provide a directory for "
5353
"'%s' -- installing right in '%s'" %
5454
(f, self.install_dir))
55-
out = self.copy_file(f, self.install_dir)
55+
(out, _) = self.copy_file(f, self.install_dir)
5656
self.outfiles.append(out)
5757
else:
5858
# it's a tuple with path to install to and a list of files
@@ -63,7 +63,7 @@ def run (self):
6363
dir = change_root(self.root, dir)
6464
self.mkpath(dir)
6565
for data in f[1]:
66-
out = self.copy_file(data, dir)
66+
(out, _) = self.copy_file(data, dir)
6767
self.outfiles.append(out)
6868

6969
def get_inputs (self):

Lib/distutils/command/install_headers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def run (self):
4141

4242
self.mkpath(self.install_dir)
4343
for header in headers:
44-
out = self.copy_file(header, self.install_dir)
44+
(out, _) = self.copy_file(header, self.install_dir)
4545
self.outfiles.append(out)
4646

4747
def get_inputs (self):

0 commit comments

Comments
 (0)