diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-04-01 06:41:15 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-04-01 06:41:15 +0400 |
commit | c8652b301fb59eead1f76bf34215af5413ffa4aa (patch) | |
tree | c80cb73435621bce2c473c5063ab9e2c266be5c8 /build_files/buildbot/master_unpack.py | |
parent | 14e94d742e985488490cbbb74e6e1dc9923bc4c2 (diff) |
pep8 checker, mostly pedantic style changes but also found an error in mesh_utils.mesh_linked_faces()
Diffstat (limited to 'build_files/buildbot/master_unpack.py')
-rw-r--r-- | build_files/buildbot/master_unpack.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/build_files/buildbot/master_unpack.py b/build_files/buildbot/master_unpack.py index f97e53384b0..612b686b49a 100644 --- a/build_files/buildbot/master_unpack.py +++ b/build_files/buildbot/master_unpack.py @@ -94,11 +94,11 @@ if platform == '': sys.exit(1) # extract -dir = 'public_html/download' +directory = 'public_html/download' try: zf = z.open(package) - f = file(os.path.join(dir, packagename), "wb") + f = file(os.path.join(directory, packagename), "wb") shutil.copyfileobj(zf, f) @@ -112,10 +112,10 @@ except Exception, ex: # remove other files from the same platform try: - for f in os.listdir(dir): + for f in os.listdir(directory): if platform.lower() in f.lower(): if f != packagename: - os.remove(os.path.join(dir, f)) + os.remove(os.path.join(directory, f)) except Exception, ex: sys.stderr.write('Failed to remove old packages: %s\n' % str(ex)) sys.exit(1) |