From 8bf8e2271f8273bdba3f8327d08b505a0fae11d5 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Tue, 29 Dec 2009 06:40:38 -0500 Subject: [PATCH] Adjust Git._vcs_isdir() to Python-2.5-compatible syntax --- libbe/storage/vcs/git.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libbe/storage/vcs/git.py b/libbe/storage/vcs/git.py index 35dcd68..2280665 100644 --- a/libbe/storage/vcs/git.py +++ b/libbe/storage/vcs/git.py @@ -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 -- 2.26.2