summaryrefslogtreecommitdiff
path: root/xnt
diff options
context:
space:
mode:
authorkennyballou <kballou@onyx.boisestate.edu>2013-03-07 13:15:06 -0700
committerkennyballou <kballou@onyx.boisestate.edu>2013-03-07 13:15:06 -0700
commit5e928a3a38e20fa386d6ade2154676a5bc601b95 (patch)
tree27a78164c08219b9e9ea4e5e7057cc5bb847591b /xnt
parente58f93d435b7a4bb3682ea17086a48a8ab065389 (diff)
downloadxnt-5e928a3a38e20fa386d6ade2154676a5bc601b95.tar.gz
xnt-5e928a3a38e20fa386d6ade2154676a5bc601b95.tar.xz
Rename zip task to create_zip
Fix pep warning about clobbering built in function
Diffstat (limited to 'xnt')
-rw-r--r--xnt/tasks.py2
-rw-r--r--xnt/tests/taskcompressiontests.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/xnt/tasks.py b/xnt/tasks.py
index 22df254..0b2a042 100644
--- a/xnt/tasks.py
+++ b/xnt/tasks.py
@@ -80,7 +80,7 @@ def rm(*fileset):
except:
raise
-def zip(dir,zipfilename):
+def create_zip(dir,zipfilename):
logger.info("Zipping %s as %s", dir, zipfilename)
assert os.path.isdir(dir) and zipfilename
with contextlib.closing(zipfile.ZipFile(
diff --git a/xnt/tests/taskcompressiontests.py b/xnt/tests/taskcompressiontests.py
index 90ba081..9fe7758 100644
--- a/xnt/tests/taskcompressiontests.py
+++ b/xnt/tests/taskcompressiontests.py
@@ -35,7 +35,7 @@ class TaskCompressionTests(unittest.TestCase):
shutil.rmtree("temp")
def test_zip(self):
- xnt.tasks.zip("temp/testfolder1", "temp/myzip.zip")
+ xnt.tasks.create_zip("temp/testfolder1", "temp/myzip.zip")
self.assertTrue(os.path.exists("temp/myzip.zip"))
if __name__ == "__main__":