From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (unknown [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id F11BD1381FA for ; Wed, 14 May 2014 23:50:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AED7DE0A99; Wed, 14 May 2014 23:49:57 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9749DE0A99 for ; Wed, 14 May 2014 23:49:56 +0000 (UTC) Received: from spoonbill.gentoo.org (unknown [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D0AB833FF67 for ; Wed, 14 May 2014 23:49:54 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id DB131182E1 for ; Wed, 14 May 2014 23:49:52 +0000 (UTC) From: "Devan Franchini" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Devan Franchini" Message-ID: <1400111298.bcb2618ef62db616faca4e8d5c8ab56a45503609.twitch153@gentoo> Subject: [gentoo-commits] proj/layman:gsoc2014 commit in: layman/ X-VCS-Repository: proj/layman X-VCS-Files: layman/utils.py X-VCS-Directories: layman/ X-VCS-Committer: twitch153 X-VCS-Committer-Name: Devan Franchini X-VCS-Revision: bcb2618ef62db616faca4e8d5c8ab56a45503609 X-VCS-Branch: gsoc2014 Date: Wed, 14 May 2014 23:49:52 +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: 083e1890-0ad3-4ad5-a6b9-e0836f04fdab X-Archives-Hash: 061a8e36e64a2bc9333fd46b4e015efc commit: bcb2618ef62db616faca4e8d5c8ab56a45503609 Author: Devan Franchini gentoo org> AuthorDate: Wed May 14 22:08:01 2014 +0000 Commit: Devan Franchini gentoo org> CommitDate: Wed May 14 23:48:18 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/layman.git;a=commit;h=bcb2618e utils.py: Adds str type checking for path_elements --- layman/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layman/utils.py b/layman/utils.py index efb3231..bc8f473 100644 --- a/layman/utils.py +++ b/layman/utils.py @@ -149,7 +149,7 @@ def path(path_elements): ''' pathname = '' - if type(path_elements) in types.StringTypes: + if isinstance(path_elements, str): path_elements = [path_elements] # Concatenate elements and seperate with /