commit:     d923de2a758e67bcc7970dd2138395d8b1edc4b6
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Sun May 22 03:48:05 2016 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Sun May 22 03:48:05 2016 +0000
URL:        https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=d923de2a

support: enhance docstrings a bit

 catalyst/support.py | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/catalyst/support.py b/catalyst/support.py
index 60cdaf6..9cc5d75 100644
--- a/catalyst/support.py
+++ b/catalyst/support.py
@@ -188,7 +188,7 @@ def pathcompare(path1,path2):
 
 
 def ismount(path):
-       "enhanced to handle bind mounts"
+       """Like os.path.ismount, but also support bind mounts"""
        if os.path.ismount(path):
                return 1
        a=os.popen("mount")
@@ -239,6 +239,12 @@ def countdown(secs=5, doing="Starting"):
 
 
 def normpath(mypath):
+       """Clean up a little more than os.path.normpath
+
+       Namely:
+        - Make sure leading // is turned into /.
+        - Leave trailing slash intact.
+       """
        TrailingSlash=False
        if mypath[-1] == "/":
                TrailingSlash=True

Reply via email to