aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-05-21 23:48:05 -0400
committerMike Frysinger <vapier@gentoo.org>2016-05-21 23:48:05 -0400
commitd923de2a758e67bcc7970dd2138395d8b1edc4b6 (patch)
tree1cf49871b40acd8fb6bb3380f1ea77e7e45f7c73
parentcountdown: only run when interactive (diff)
downloadcatalyst-d923de2a758e67bcc7970dd2138395d8b1edc4b6.tar.gz
catalyst-d923de2a758e67bcc7970dd2138395d8b1edc4b6.tar.bz2
catalyst-d923de2a758e67bcc7970dd2138395d8b1edc4b6.zip
support: enhance docstrings a bit
-rw-r--r--catalyst/support.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/catalyst/support.py b/catalyst/support.py
index 60cdaf62..9cc5d751 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