• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

release-engineering / pubtools-pulplib / 178
100%

Build:
DEFAULT BRANCH: master
Ran 09 Sep 2019 01:03AM UTC
Jobs 1
Files 36
Run time 4s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
178

push

travis-ci

web-flow
Deprecate Page.as_iter in preference of __iter__ (#48)

Implementing __iter__ allows to directly iterate over Page objects
rather than having to call as_iter.

The original idea with adding Page.as_iter rather than __iter__ was
that using as_iter is blocking, and it would be better to be
explicit rather than implicit whenever operations might block, so
as to help keep a workflow entirely non-blocking.

However, now we have several pieces of code using this library and
the following pattern is seen commonly:

  repos = client.search_repository(...).result().as_iter()
  for repo in repos:
    ...

That's a bit too noisy, and this usage seems to be more common than
using search results in a non-blocking manner anyway (e.g. we usually
want to find & validate *all* repos before moving to the next step).

So, it seems like the idea of "explicit over implicit" here isn't
helping. Let's allow using the result as an iterable directly, so
above code can be written as slightly cleaner:

  repos = client.search_repository(...).result()
  for repo in repos:
    ...

1282 of 1282 relevant lines covered (100.0%)

1.0 hits per line

Jobs
ID Job ID Ran Files Coverage
4 178.4 (TOX_ENV=cov-travis DEPLOY=1) 09 Sep 2019 01:03AM UTC 0
100.0
Travis Job 178.4
Source Files on build 178
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #178
  • 15eae369 on github
  • Prev Build on master (#172)
  • Next Build on master (#180)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc