summaryrefslogtreecommitdiff
path: root/ybd/utils.py
diff options
context:
space:
mode:
authorDaniel Firth <dan.firth@codethink.co.uk>2016-10-11 14:53:05 +0100
committerDaniel Firth <dan.firth@codethink.co.uk>2016-11-15 12:56:14 +0000
commit68de1876b1dce7a10065d700716221bec9cf9e3a (patch)
tree7951d3b184929650198f8b94fabad51fe8d56ec2 /ybd/utils.py
parent10662f7a4dc0c2a3a57e60736b5bfed33dceedae (diff)
downloadybd-68de1876b1dce7a10065d700716221bec9cf9e3a.tar.gz
pep8
Diffstat (limited to 'ybd/utils.py')
-rw-r--r--ybd/utils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ybd/utils.py b/ybd/utils.py
index 8fe4b30..c2d339d 100644
--- a/ybd/utils.py
+++ b/ybd/utils.py
@@ -210,9 +210,9 @@ def copy_file_list(srcpath, destpath, filelist):
'''
def _copyfun(inpath, outpath):
- with open(inpath, "r", encoding='utf-8', errors='ignore') as infh:
- with open(outpath, "w", encoding='utf-8', errors='ignore') as outfh:
- shutil.copyfileobj(infh, outfh, 1024*1024*4)
+ with open(inpath, "r", encoding='utf-8', errors='ignore') as inf:
+ with open(outpath, "w", encoding='utf-8', errors='ignore') as outf:
+ shutil.copyfileobj(inf, outf, 1024*1024*4)
shutil.copystat(inpath, outpath)
_process_list(srcpath, destpath, filelist, _copyfun)