Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Match code example and docs

  • Loading branch information...
commit d1f5474dec80e74222554a02ecbf512107ce8c52 1 parent bef18e0
@kislyuk authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 docs/examples/describe_github_user.py
View
4 docs/examples/describe_github_user.py
@@ -4,7 +4,7 @@
def github_org_members(prefix, parsed_args, **kwargs):
resource = "https://api.github.com/orgs/{org}/members".format(org=parsed_args.organization)
- return (member['login'] for member in requests.get(resource).json if member['login'].startswith(prefix))
+ return (member['login'] for member in requests.get(resource).json() if member['login'].startswith(prefix))
parser = argparse.ArgumentParser()
parser.add_argument("--organization", help="GitHub organization")
@@ -13,4 +13,4 @@ def github_org_members(prefix, parsed_args, **kwargs):
argcomplete.autocomplete(parser)
args = parser.parse_args()
-pprint.pprint(requests.get("https://api.github.com/users/" + args.member).json)
+pprint.pprint(requests.get("https://api.github.com/users/" + args.member).json())
Please sign in to comment.
Something went wrong with that request. Please try again.