Skip to content

Commit

Permalink
Remove the get_paged function in pdc client
Browse files Browse the repository at this point in the history
JIRA: PDC-1570
  • Loading branch information
bliuredhat committed Jun 16, 2016
1 parent 2ab1740 commit 77696ad
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions pdc_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from os.path import expanduser, isfile, isdir
import sys
from subprocess import Popen, PIPE
import exceptions

import beanbag
import requests
Expand Down Expand Up @@ -87,23 +86,6 @@ def read_config_file(server_alias):
return result


def get_paged(res, **kwargs):
""" will be abandon in next release"""
exceptions.PendingDeprecationWarning("""Warning: This method have been removed into PDCClient class;
and then will be deleted in next release.""")

def worker():
kwargs['page'] = 1
while True:
response = res(**kwargs)
yield response['results']
if response['next']:
kwargs['page'] += 1
else:
break
return itertools.chain.from_iterable(worker())


class PDCClient(object):
"""BeanBag wrapper specialized for PDC access.
Expand Down

0 comments on commit 77696ad

Please sign in to comment.