]> git.phdru.name Git - m_lib.git/blobdiff - m_lib/m_shutil.py
Raise Error(message) for Py3 compatibility
[m_lib.git] / m_lib / m_shutil.py
index 7546b0d3c17cf61cae3e185ce45743c1366b6e2c..f1034e0f65ec90f9a5f1e543276c71e380aa21d0 100755 (executable)
@@ -15,7 +15,7 @@ def mkhier(path): # Python implementation of UNIX' mkdir -p /path/to/dir
       return # It's Ok to have the directory already created
 
    if os.path.exists(path):
-      raise mkhier_error, "`%s' is file" % path
+      raise mkhier_error("`%s' is file" % path)
 
    list_dirs = string.split(path, os.sep)
    #print(list_dirs)