aboutsummaryrefslogtreecommitdiff
path: root/pyasn1_modules/pem.py
diff options
context:
space:
mode:
authorIlya Etingof <etingof@gmail.com>2016-03-27 23:51:41 +0200
committerIlya Etingof <etingof@gmail.com>2016-03-27 23:51:41 +0200
commitc99c96a9f77c91620ea509efa745891c80059ebd (patch)
tree7b5dc9f55e897d230f2acc8f5e61ae9c31d04f60 /pyasn1_modules/pem.py
parent2a5c89cd9890d34a77e8d9e2d715cf6bbef7bbd1 (diff)
downloadpyasn1-modules-c99c96a9f77c91620ea509efa745891c80059ebd.tar.gz
pep8 reformatted
Diffstat (limited to 'pyasn1_modules/pem.py')
-rw-r--r--pyasn1_modules/pem.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/pyasn1_modules/pem.py b/pyasn1_modules/pem.py
index 638e74e..e3f8cb6 100644
--- a/pyasn1_modules/pem.py
+++ b/pyasn1_modules/pem.py
@@ -4,7 +4,8 @@
# Copyright (c) 2005-2016, Ilya Etingof <ilya@glas.net>
# License: http://pyasn1.sf.net/license.html
#
-import base64, sys
+import base64
+import sys
stSpam, stHam, stDump = 0, 1, 2
@@ -13,9 +14,9 @@ stSpam, stHam, stDump = 0, 1, 2
# Return is (marker-index, substrate)
def readPemBlocksFromFile(fileObj, *markers):
startMarkers = dict(map(lambda x: (x[1], x[0]),
- enumerate(map(lambda x: x[0], markers))))
+ enumerate(map(lambda y: y[0], markers))))
stopMarkers = dict(map(lambda x: (x[1], x[0]),
- enumerate(map(lambda x: x[1], markers))))
+ enumerate(map(lambda y: y[1], markers))))
idx = -1
substrate = ''
certLines = []