From ad2c60d461ab3aa20c625b9deb64df15d24bbf6b Mon Sep 17 00:00:00 2001 From: Vincent Jacques Date: Sun, 26 Feb 2012 17:15:26 +0000 Subject: [PATCH] Fix bug with repository owner when owner is AuthenticatedUser --- github/GithubObjects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github/GithubObjects.py b/github/GithubObjects.py index 131e4e69..7aa7dc61 100644 --- a/github/GithubObjects.py +++ b/github/GithubObjects.py @@ -389,7 +389,7 @@ Repository._addAttributePolicy( SeveralAttributePolicies( [ ] ) ) __repoElementCreatable = ElementCreatable( [ "name" ], [ "description", "homepage", "private", "has_issues", "has_wiki", "has_downloads", "team_id", ] ) -__repoElementGetable = ElementGetable( [ "name" ], [], { "owner" : lambda user: user } ) +__repoElementGetable = ElementGetable( [ "name" ], [], { "owner" : lambda user: { "login": user.login } } ) __repoListGetable = ListGetable( [], [ "type" ] ) AuthenticatedUser._addAttributePolicy( ExternalListOfObjects( "repos", "repo", Repository,