From 7286eec0e060d9a787e786e50c1a7efd97978735 Mon Sep 17 00:00:00 2001 From: Jacopo Notarstefano Date: Sun, 16 Sep 2018 14:00:20 +0200 Subject: [PATCH] Fix Repository.edit (#904) Allows to pass falsy values to the new arguments introduced in #844. Closes #903 --- github/Repository.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/github/Repository.py b/github/Repository.py index 4faec7be..6341ec4a 100644 --- a/github/Repository.py +++ b/github/Repository.py @@ -1247,9 +1247,9 @@ class Repository(github.GithubObject.CompletableGithubObject): assert has_wiki is github.GithubObject.NotSet or isinstance(has_wiki, bool), has_wiki assert has_downloads is github.GithubObject.NotSet or isinstance(has_downloads, bool), has_downloads assert default_branch is github.GithubObject.NotSet or isinstance(default_branch, (str, unicode)), default_branch - assert allow_squash_merge is github.GithubObject.NotSet or (isinstance(allow_squash_merge, bool) and allow_squash_merge is True), allow_squash_merge - assert allow_merge_commit is github.GithubObject.NotSet or (isinstance(allow_merge_commit, bool) and allow_merge_commit is True), allow_merge_commit - assert allow_rebase_merge is github.GithubObject.NotSet or (isinstance(allow_rebase_merge, bool) and allow_rebase_merge is True), allow_rebase_merge + assert allow_squash_merge is github.GithubObject.NotSet or isinstance(allow_squash_merge, bool), allow_squash_merge + assert allow_merge_commit is github.GithubObject.NotSet or isinstance(allow_merge_commit, bool), allow_merge_commit + assert allow_rebase_merge is github.GithubObject.NotSet or isinstance(allow_rebase_merge, bool), allow_rebase_merge assert archived is github.GithubObject.NotSet or (isinstance(archived, bool) and archived is True), archived post_parameters = { "name": name,