Commits

Sybren Stüvel committed 64c1bb1

Fixed doctests

  • Participants
  • Parent commits a48498f

Comments (0)

Files changed (2)

         keys easier.
 
     >>> crypto = encrypt('hello', pub_key)
-    >>> crypto = 'X' + crypto[1:] # change the first byte
+    >>> crypto = crypto[0:5] + 'X' + crypto[6:] # change a byte
     >>> decrypt(crypto, priv_key)
     Traceback (most recent call last):
     ...
 
 
 def _int2bytes(number, block_size=None):
-    '''Converts a number to a string of bytes.
+    r'''Converts a number to a string of bytes.
 
     Usage::