+
    üÐju	  ã                   ó   €  ! R  R4      t R# )c                   ón   a € ] tR t^t o Rt^ tRR ltR tV 3R lR ltV 3R lR lt	R	 t
R
 tR tRtV tR# )ÚCounterzÀa simple counter object for testing trial's doctest support

>>> c = Counter()
>>> c.value()
0
>>> c += 3
>>> c.value()
3
>>> c.incr()
>>> c.value() == 4
True
>>> c == 4
True
>>> c != 9
True

Nc                ó   € Wn         W n        R # )N©Ú_countÚmaxval)ÚselfÚinitialValuer   s   &&&Ú@/usr/lib/python3/dist-packages/twisted/trial/test/mockdoctest.pyÚ__init__ÚCounter.__init__   s   € Ø"ŒØŽó    c                ó®   € V P                   e.   V P                  V,           V P                   8”  d   \        R4      hV ;P                  V,          un        V # )z[add other to my value and return self

>>> c = Counter(100)
>>> c += 333
>>> c == 433
True
zsorry, counter got too big)r   r   Ú
ValueError©r   Úothers   &&r
   Ú__iadd__ÚCounter.__iadd__!   sA   € ð �;‰;Ò"¨¯©°uÕ)<ÀÇÁÔ(KÜÐ9Ó:Ð:à�KŠK˜5Õ �KØˆr   c                ó&   <€ V ^8„  d   QhRS[ RS[/# ©é   r   Úreturn©ÚobjectÚbool)ÚformatÚ__classdict__s   "€r
   Ú__annotate__ÚCounter.__annotate__/   s   ø€ ÷ $ñ $™Fð $¡tñ $r   c                ó    € V P                   V8H  # )z›equality operator, compare other to my value()

>>> c = Counter()
>>> c == 0
True
>>> c += 10
>>> c.incr()
>>> c == 10   # fail this test on purpose
True

©r   r   s   &&r
   Ú__eq__ÚCounter.__eq__/   s   € ð �{‰{˜eÑ#Ð#r   c                ó&   <€ V ^8„  d   QhRS[ RS[/# r   r   )r   r   s   "€r
   r   r   =   s   ø€ ÷ &ñ &™Fð &¡tñ &r   c                ó.   € V P                  V4      '       * # )z8inequality operator

>>> c = Counter()
>>> c != 10
True
)r!   r   s   &&r
   Ú__ne__ÚCounter.__ne__=   s   € ð —;‘;˜uÓ%Ô%Ð%r   c                ó(   € V P                  ^4       R# )aÊ  increment my value by 1

>>> from twisted.trial.test.mockdoctest import Counter
>>> c = Counter(10, 11)
>>> c.incr()
>>> c.value() == 11
True
>>> c.incr()
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "twisted/trial/test/mockdoctest.py", line 51, in incr
    self.__iadd__(1)
  File "twisted/trial/test/mockdoctest.py", line 39, in __iadd__
    raise ValueError, "sorry, counter got too big"
ValueError: sorry, counter got too big
N)r   ©r   s   &r
   ÚincrÚCounter.incrF   s   € ð" 	�‰�aÖr   c                ó   € V P                   # )zLreturn this counter's value

>>> c = Counter(555)
>>> c.value() == 555
True
r    r(   s   &r
   ÚvalueÚCounter.valueY   s   € ð �{‰{Ðr   c                ó   € R# )z]i will raise an unexpected exception...
... *CAUSE THAT'S THE KINDA GUY I AM*

      >>> 1/0
N© r(   s   &r
   ÚunexpectedExceptionÚCounter.unexpectedExceptionb   s   ‚ r   r   )é    N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r   r   r!   r%   r)   r,   r0   Ú__static_attributes__Ú__classdictcell__)r   s   @r
   r   r      sC   ø‡ € ñð$ €Fôò÷$ð $÷&ð &òò&÷ð r   r   N)r   r/   r   r
   Ú<module>r:      s   ð÷_ó _r   