From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 2715D138262 for ; Sun, 22 May 2016 03:48:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3EC04E086A; Sun, 22 May 2016 03:48:20 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D590BE086A for ; Sun, 22 May 2016 03:48:19 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0EE6933E142 for ; Sun, 22 May 2016 03:48:17 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C8E6B87B for ; Sun, 22 May 2016 03:48:12 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1463888885.d923de2a758e67bcc7970dd2138395d8b1edc4b6.vapier@gentoo> Subject: [gentoo-commits] proj/catalyst:master commit in: catalyst/ X-VCS-Repository: proj/catalyst X-VCS-Files: catalyst/support.py X-VCS-Directories: catalyst/ X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: d923de2a758e67bcc7970dd2138395d8b1edc4b6 X-VCS-Branch: master Date: Sun, 22 May 2016 03:48:12 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: dd8d79ec-dbdc-435b-b021-115361adec9a X-Archives-Hash: b8f9ab027b6085b2329984527ce2c298 commit: d923de2a758e67bcc7970dd2138395d8b1edc4b6 Author: Mike Frysinger gentoo org> AuthorDate: Sun May 22 03:48:05 2016 +0000 Commit: Mike Frysinger gentoo 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