Adjust Git._vcs_isdir() to Python-2.5-compatible syntax
authorW. Trevor King <wking@drexel.edu>
Tue, 29 Dec 2009 11:40:38 +0000 (06:40 -0500)
committerW. Trevor King <wking@drexel.edu>
Tue, 29 Dec 2009 11:40:38 +0000 (06:40 -0500)
libbe/storage/vcs/git.py

index 35dcd68e3e2457a663b733612a75e95555a00161..2280665c39cbc002d5f3e3bc8cd4fe79e5e9c2d0 100644 (file)
@@ -125,7 +125,8 @@ class Git(base.VCS):
     def _vcs_isdir(self, path, revision):
         arg = '%s:%s' % (revision,path)
         args = ['ls-tree', arg]
-        status,output,error = self._u_invoke_client(*args, expect=(0,128))
+        kwargs = {'expect':(0,128)}
+        status,output,error = self._u_invoke_client(*args, **kwargs)
         if status != 0:
             if 'not a tree object' in error:
                 return False