commit:     bcb2618ef62db616faca4e8d5c8ab56a45503609
Author:     Devan Franchini <twitch153 <AT> gentoo <DOT> org>
AuthorDate: Wed May 14 22:08:01 2014 +0000
Commit:     Devan Franchini <twitch153 <AT> gentoo <DOT> 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 /

Reply via email to