From: Georg Brandl Date: Sat, 25 Aug 2012 08:11:57 +0000 (+0200) Subject: Fix wrong way of adding Error information in shutil.copytree. X-Git-Tag: v2.7.5~109^2~355 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3196529f3cd5af02029e7687fa45fb98a71a5de1;p=python Fix wrong way of adding Error information in shutil.copytree. --- diff --git a/Lib/shutil.py b/Lib/shutil.py index dca4d2efeb..420802fafd 100644 --- a/Lib/shutil.py +++ b/Lib/shutil.py @@ -203,7 +203,7 @@ def copytree(src, dst, symlinks=False, ignore=None): # Copying file access times may fail on Windows pass else: - errors.extend((src, dst, str(why))) + errors.append((src, dst, str(why))) if errors: raise Error, errors