From: W. Trevor King Date: Tue, 29 Dec 2009 11:40:38 +0000 (-0500) Subject: Adjust Git._vcs_isdir() to Python-2.5-compatible syntax X-Git-Tag: 1.0.0~59^2~52^2~23 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8bf8e2271f8273bdba3f8327d08b505a0fae11d5;p=be.git Adjust Git._vcs_isdir() to Python-2.5-compatible syntax --- 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