Sha256: 1840a98bd84d0aeb37be19f4f6547752b7da81e09d2c562d0edade9e75b99a30

Contents?: true

Size: 1.98 KB

Versions: 4

Compression:

Stored size: 1.98 KB

Contents

ó
ôBQc@s dZdefd„ƒYZdS(sy
Iterator wrapper that allows you to check whether the wrapped iterator
is empty and whether it has more than 1 element.
tPluralityCheckableIteratorcBs>eZd„Zd„Zd„Zd„Zd„Zd„ZRS(cCs@|jƒ|_g|_x!tddƒD]}|jƒq(WdS(Nii(t__iter__tittheadtranget__populate_head__(tselfRti((s@/tmp/tmp.yUYbTOKr8o/gsutil/gslib/plurality_checkable_iterator.pyt__init__s	cCsMy,|jjƒ}t|_|jj|ƒWntk
rHt|_nXdS(N(RtnexttFalsetunderlying_iter_emptyRtappendt
StopIterationtTrue(Rte((s@/tmp/tmp.yUYbTOKr8o/gsutil/gslib/plurality_checkable_iterator.pyRs	
ccs4x-t|jƒdkr&|jƒVqWtƒ‚dS(Ni(tlenRR	R
(R((s@/tmp/tmp.yUYbTOKr8o/gsutil/gslib/plurality_checkable_iterator.pyR(scCs|jƒ|jjdƒS(Ni(RRtpop(R((s@/tmp/tmp.yUYbTOKr8o/gsutil/gslib/plurality_checkable_iterator.pyR	.s
cCst|jƒdkS(Ni(RR(R((s@/tmp/tmp.yUYbTOKr8o/gsutil/gslib/plurality_checkable_iterator.pytis_empty4scCst|jƒdkS(Ni(RR(R((s@/tmp/tmp.yUYbTOKr8o/gsutil/gslib/plurality_checkable_iterator.pyt
has_plurality7s(t__name__t
__module__RRRR	RR(((s@/tmp/tmp.yUYbTOKr8o/gsutil/gslib/plurality_checkable_iterator.pyRs		
			N(t__doc__tobjectR(((s@/tmp/tmp.yUYbTOKr8o/gsutil/gslib/plurality_checkable_iterator.pyt<module>s

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
googlecloud-0.0.7 packages/gsutil/gslib/plurality_checkable_iterator.pyc
gcloud-0.0.7 packages/gsutil/gslib/plurality_checkable_iterator.pyc
googlecloud-0.0.6 packages/gsutil/gslib/plurality_checkable_iterator.pyc
gcloud-0.0.6 packages/gsutil/gslib/plurality_checkable_iterator.pyc