[Checkins] SVN: z3c.objpath/trunk/src/z3c/objpath/path.py Make it work with paths that are just '/'

Martijn Faassen faassen at infrae.com
Wed Feb 6 14:54:23 EST 2008


Log message for revision 83604:
  Make it work with paths that are just '/'
  

Changed:
  U   z3c.objpath/trunk/src/z3c/objpath/path.py

-=-
Modified: z3c.objpath/trunk/src/z3c/objpath/path.py
===================================================================
--- z3c.objpath/trunk/src/z3c/objpath/path.py	2008-02-06 19:50:05 UTC (rev 83603)
+++ z3c.objpath/trunk/src/z3c/objpath/path.py	2008-02-06 19:54:23 UTC (rev 83604)
@@ -19,6 +19,8 @@
     steps = path.split('/')
     assert steps[0] == ''
     obj = root
+    if steps[1] == '':
+        return root
     assert steps[1] == root.__name__
     steps = steps[2:]
     for step in steps:



More information about the Checkins mailing list