summaryrefslogtreecommitdiff
path: root/xnt/tasks.py
diff options
context:
space:
mode:
authorkennyballou <kballou@onyx.boisestate.edu>2012-10-10 17:50:45 -0600
committerkballou <kballou@onyx.boisestate.edu>2012-10-10 17:50:45 -0600
commit2f22d4ff3a73adfafe3ce4587bb266b9e930a9c5 (patch)
tree325e8721c75bc39892168d5fdbc8933af26ff80c /xnt/tasks.py
parent43c1cd6a515781a0af8b7fc2b02cbebbe95c9705 (diff)
downloadxnt-2f22d4ff3a73adfafe3ce4587bb266b9e930a9c5.tar.gz
xnt-2f22d4ff3a73adfafe3ce4587bb266b9e930a9c5.tar.xz
Change default mode value for mkdir
The default value, 0777, was throwing a syntax error for python3. Further the `os` module expects this number to be an octal number
Diffstat (limited to 'xnt/tasks.py')
-rw-r--r--xnt/tasks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/xnt/tasks.py b/xnt/tasks.py
index 66a6074..88f977c 100644
--- a/xnt/tasks.py
+++ b/xnt/tasks.py
@@ -18,7 +18,7 @@ def cp(src,dst):
def mv(src,dst):
shutil.move(src,dst)
-def mkdir(dir,mode=0777):
+def mkdir(dir,mode=0o777):
try:
os.mkdir(dir,mode)
except IOError: