Skip to content

Commit

Permalink
iter_repos => repositories
Browse files Browse the repository at this point in the history
  • Loading branch information
robnagler committed Apr 24, 2018
1 parent 26ab148 commit 8c09db6
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions pykern/pkcli/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,16 @@ def __init__(self):
self._date_d = datetime.datetime.now().strftime('%Y%m%d%H%M%S')
with pkio.save_chdir(self._date_d, mkdir=True):
self._login()
if cfg.test_mode:
self._repo(self._github.repository('radiasoft', 'pykern'))
else:
sleep = 0
for r in self._github.iter_repos(type='all'):
if sleep:
time.sleep(sleep)
else:
sleep = cfg.api_pause_seconds
self._repo(r)
sleep = 0
for r in self._github.repositories(type='all'):
if cfg.test_mode:
if r.name != 'pykern':
continue
elif sleep:
time.sleep(sleep)
else:
sleep = cfg.api_pause_seconds
self._repo(r)
self._purge()

def _login(self):
Expand Down

0 comments on commit 8c09db6

Please sign in to comment.