aboutsummaryrefslogtreecommitdiffstats
path: root/pygithub3/services
diff options
context:
space:
mode:
authorStefano Rivera <stefano@rivera.za.net>2012-04-24 01:20:26 +0200
committerStefano Rivera <stefano@rivera.za.net>2012-04-24 01:20:26 +0200
commit8e91d748c250e208be090396e4b9434f22221107 (patch)
tree15e86caaf469004bbe5d9eb425297e9fffa4b100 /pygithub3/services
parentMove Team to orgs (diff)
downloadpython-github3-8e91d748c250e208be090396e4b9434f22221107.tar.xz
python-github3-8e91d748c250e208be090396e4b9434f22221107.zip
name -> org
Diffstat (limited to 'pygithub3/services')
-rw-r--r--pygithub3/services/orgs/__init__.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/pygithub3/services/orgs/__init__.py b/pygithub3/services/orgs/__init__.py
index 28f6b16..c222956 100644
--- a/pygithub3/services/orgs/__init__.py
+++ b/pygithub3/services/orgs/__init__.py
@@ -25,18 +25,18 @@ class Org(Service):
request = self.request_builder('orgs.list', user=user)
return self._get_result(request)
- def get(self, name):
+ def get(self, org):
""" Get a single org
- :param str name: Org name
+ :param str org: Org name
"""
- request = self.request_builder('orgs.get', name=name)
+ request = self.request_builder('orgs.get', org=org)
return self._get(request)
- def update(self, name, data):
+ def update(self, org, data):
""" Update a single org
- :param str name: Org name
+ :param str org: Org name
:param dict data: Input. See `github orgs doc`_
.. warning ::
@@ -47,5 +47,5 @@ class Org(Service):
org_service.update(dict(company='ACME Development',
location='Timbuctoo'))
"""
- request = self.request_builder('orgs.update', name=name, body=data)
+ request = self.request_builder('orgs.update', org=org, body=data)
return self._patch(request)