code: def iter_repos(self, type=None, sort=None, direction=None, number=-1,
                     etag=None):
          url = self._build_url('user', 'repos')
          params = {}
          if type in ('all', 'owner', 'public', 'private', 'member'):
              params.update(type=type)
          if sort in ('created', 'updated', 'pushed', 'full_name'):
              params.update(sort=sort)
          if direction in ('asc', 'desc'):
              params.update(direction=direction)
          return self._iter(int(number), url, Repository, params, etag)