[CalendarServer-changes] [8989] CalendarServer/trunk/calendarserver/tools/shell/vfs.py
source_changes at macosforge.org
source_changes at macosforge.org
Thu Apr 5 13:01:03 PDT 2012
Revision: 8989
http://trac.macosforge.org/projects/calendarserver/changeset/8989
Author: wsanchez at apple.com
Date: 2012-04-05 13:01:02 -0700 (Thu, 05 Apr 2012)
Log Message:
-----------
Fix lookup on /
Modified Paths:
--------------
CalendarServer/trunk/calendarserver/tools/shell/vfs.py
Modified: CalendarServer/trunk/calendarserver/tools/shell/vfs.py
===================================================================
--- CalendarServer/trunk/calendarserver/tools/shell/vfs.py 2012-04-05 19:49:45 UTC (rev 8988)
+++ CalendarServer/trunk/calendarserver/tools/shell/vfs.py 2012-04-05 20:01:02 UTC (rev 8989)
@@ -31,7 +31,6 @@
from calendarserver.tools.tables import Table
-
class File(object):
"""
Object in virtual data hierarchy.
@@ -79,7 +78,7 @@
@inlineCallbacks
def locate(self, path):
- if path[-1] == "":
+ if path and path[-1] == "":
path.pop()
if not path:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120405/a4f8f9ae/attachment.html>
More information about the calendarserver-changes
mailing list