diff options
author | kennyballou <kballou@onyx.boisestate.edu> | 2012-10-10 17:50:45 -0600 |
---|---|---|
committer | kballou <kballou@onyx.boisestate.edu> | 2012-10-10 17:50:45 -0600 |
commit | 2f22d4ff3a73adfafe3ce4587bb266b9e930a9c5 (patch) | |
tree | 325e8721c75bc39892168d5fdbc8933af26ff80c /xnt/tasks.py | |
parent | 43c1cd6a515781a0af8b7fc2b02cbebbe95c9705 (diff) | |
download | xnt-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.py | 2 |
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: |