@@ -23,7 +23,7 @@ def __init__(self, url, *args, **kwargs):
2323
2424 def each (self , after = None , role = None , q = None , sort = None ):
2525 """
26- Returns a list of repositories accessible by the authenticated user .
26+ Get all repositories matching the criteria .
2727
2828 The result can be narrowed down based on the authenticated user"s role.
2929 E.g. with ?role=contributor, only those repositories that the authenticated user has write access to
@@ -44,7 +44,6 @@ def each(self, after=None, role=None, q=None, sort=None):
4444
4545 :return: A generator for the Rorkspace objects
4646 """
47- url = None
4847 if q is not None and role is None :
4948 raise ValueError ("Argument [q] requires argument [role]." )
5049
@@ -57,7 +56,7 @@ def each(self, after=None, role=None, q=None, sort=None):
5756 params ["q" ] = q
5857 if sort is not None :
5958 params ["sort" ] = sort
60- for repository in self ._get_paged (url , params ):
59+ for repository in self ._get_paged (None , params ):
6160 yield self ._get_repository_object (repository )
6261
6362
@@ -67,7 +66,7 @@ def __init__(self, url, *args, **kwargs):
6766
6867 def each (self , role = None , q = None , sort = None ):
6968 """
70- Returns a list of repositories which belong to the workspace .
69+ Get all repositories in the workspace matching the criteria .
7170
7271 :param role: string: Filters the workspaces based on the authenticated user"s role on each workspace.
7372 * member: returns a list of all the workspaces which the caller is a member of
@@ -82,15 +81,14 @@ def each(self, role=None, q=None, sort=None):
8281
8382 :return: A generator for the Rorkspace objects
8483 """
85- url = None
8684 params = {}
8785 if role is not None :
8886 params ["role" ] = role
8987 if q is not None :
9088 params ["q" ] = q
9189 if sort is not None :
9290 params ["sort" ] = sort
93- for repository in self ._get_paged (url , params ):
91+ for repository in self ._get_paged (None , params ):
9492 yield self ._get_object (repository )
9593
9694 def get (self , repository , by = "slug" ):
@@ -120,18 +118,17 @@ def __init__(self, url, *args, **kwargs):
120118
121119 def each (self , sort = None ):
122120 """
123- Returns a list of repositories which belong to the project .
121+ Get all repositories in the project matching the criteria .
124122
125123 :param sort: string: Name of a response property to sort results.
126124 See https://developer.atlassian.com/bitbucket/api/2/reference/meta/filtering for details.
127125
128126 :return: A generator for the Rorkspace objects
129127 """
130- url = None
131128 params = {}
132129 if sort is not None :
133130 params ["sort" ] = sort
134- for repository in self ._get_paged (url , params ):
131+ for repository in self ._get_paged (None , params ):
135132 yield self ._get_object (repository )
136133
137134 def get (self , repository , by = "slug" ):
0 commit comments