summaryrefslogtreecommitdiffstats
path: root/BuildManager/fileutil.py
diff options
context:
space:
mode:
Diffstat (limited to 'BuildManager/fileutil.py')
-rw-r--r--BuildManager/fileutil.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/BuildManager/fileutil.py b/BuildManager/fileutil.py
index aeba0eb..05126da 100644
--- a/BuildManager/fileutil.py
+++ b/BuildManager/fileutil.py
@@ -25,21 +25,21 @@ def _copy_file_contents (src, dst, buffer_size=16*1024):
try:
try:
fsrc = open(src, 'rb')
- except os.error as xxx_todo_changeme2:
- (errno, errstr) = xxx_todo_changeme2.args
+ except os.error as e:
+ (errno, errstr) = e.args
raise Error("could not open %s: %s" % (src, errstr))
try:
fdst = open(dst, 'wb')
- except os.error as xxx_todo_changeme3:
- (errno, errstr) = xxx_todo_changeme3.args
+ except os.error as e:
+ (errno, errstr) = e.args
raise Error("could not create %s: %s" % (dst, errstr))
while 1:
try:
buf = fsrc.read(buffer_size)
- except os.error as xxx_todo_changeme:
- (errno, errstr) = xxx_todo_changeme.args
+ except os.error as e:
+ (errno, errstr) = e.args
raise Error("could not read from %s: %s" % (src, errstr))
if not buf:
@@ -47,8 +47,8 @@ def _copy_file_contents (src, dst, buffer_size=16*1024):
try:
fdst.write(buf)
- except os.error as xxx_todo_changeme1:
- (errno, errstr) = xxx_todo_changeme1.args
+ except os.error as e:
+ (errno, errstr) = e.args
raise Error("could not write to %s: %s" % (dst, errstr))
finally: