Andriy Kornatskyy committed 2840a2f

Fixed PEP8 warnings.

Comments (0)

Files changed (4)

-syntax: glob                                                                   
+syntax: glob
 	find src/ -type d -name __pycache__ | xargs rm -rf
 	find src/ -name '*.py[co]' -delete
-	rm -rf dist/ build/ MANIFEST src/*.egg-info
+	rm -rf dist/ build/ MANIFEST src/*.egg-info .cache .coverage
 	$(PYTHON) -q bdist_egg
 upload-dir = doc/_build
+pep8ignore =


     __slots__ = ('cypher', 'max_age', 'hmac', 'digest_size', 'block_size')
     def __init__(self, max_age=900, salt='', digestmod=None,
-            cypher=aes128, options=None):
+                 cypher=aes128, options=None):
         self.max_age = max_age
         if not digestmod:
             warn('Ticket: digestmod is not specified, fallback to sha1',
-                    stacklevel=2)
+                 stacklevel=2)
             digestmod = sha1
         options = options or {}
         key = b(salt + options.get('CRYPTO_VALIDATION_KEY', ''))
             cypher = cypher()
             value = encrypt(cypher, pad(value, self.block_size))
         return btos(b64encode(self.sign(value) + value, BASE64_ALTCHARS),
-                'latin1')
+                    'latin1')
     def decode(self, value, encoding='UTF-8'):
         """ Decode ``value`` according to ticket policy.