Skip to content

Commit

Permalink
Force one-entry-per-line output in 'pprint(list(...))'.
Browse files Browse the repository at this point in the history
Works around Python 3.5 test breakage due to:
http://bugs.python.org/issue19105.
  • Loading branch information
tseaver committed Apr 14, 2016
1 parent 9ce64e1 commit 220b31a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/zope/pluggableauth/plugins/principalfolder.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ If there are a large number of matches:
... p = InternalPrincipal('l'+i, i, "Dude "+i)
... principals[i] = p

>>> pprint(list(principals.search({'search': 'D'})))
>>> pprint(list(principals.search({'search': 'D'})), width=25)
[u'principal.0',
u'principal.1',
u'principal.10',
Expand Down Expand Up @@ -108,7 +108,8 @@ We can use batching parameters to specify a subset of results:
u'principal.11',
u'principal.12']

>>> pprint(list(principals.search({'search': 'D'}, start=5, batch_size=5)))
>>> pprint(list(principals.search({'search': 'D'}, start=5, batch_size=5)),
... width=25)
[u'principal.13',
u'principal.14',
u'principal.15',
Expand Down

0 comments on commit 220b31a

Please sign in to comment.