Commits

Andriy Kornatskyy  committed 2840a2f

Fixed PEP8 warnings.

  • Participants
  • Parent commits 4407c3d

Comments (0)

Files changed (4)

-syntax: glob                                                                   
-build/                                                                         
-dist/                                                                          
-env/                                                                           
-src/*.egg-info/                                                                
-.coverage                                                                      
-*.pyc                                                                          
-*.pyo                                                                          
-doc/_build
+syntax: glob
+build/
+dist/
+env/
+src/*.egg-info/
+.cache
+.coverage
+*.pyc
+*.pyo
+doc/_build
 clean:
 	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
 
 release:
 	$(PYTHON) setup.py -q bdist_egg
 upload-dir = doc/_build
 
 [pytest]
+pep8ignore =

File src/wheezy/security/crypto/ticket.py

     __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.