summaryrefslogtreecommitdiff
path: root/src/leap/mail/utils.py
diff options
context:
space:
mode:
authorBruno Wagner <bwgpro@gmail.com>2015-07-21 19:16:53 -0300
committerBruno Wagner <bwgpro@gmail.com>2015-07-21 19:17:46 -0300
commit6ab67b4c69be4d3f3fb34dd3f76cd36822e7e1ca (patch)
tree5e84bf46c4eef5d8d9f6c0724904e8e8aa9e4b5f /src/leap/mail/utils.py
parenta36a3bd419bdf33d66ed77277089db537e8b7b36 (diff)
Fixed all the pep8 warnings in the code
Diffstat (limited to 'src/leap/mail/utils.py')
-rw-r--r--src/leap/mail/utils.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/leap/mail/utils.py b/src/leap/mail/utils.py
index 029e9f5..64fca98 100644
--- a/src/leap/mail/utils.py
+++ b/src/leap/mail/utils.py
@@ -254,6 +254,7 @@ def validate_address(address):
# String manipulation
#
+
class CustomJsonScanner(object):
"""
This class is a context manager definition used to monkey patch the default
@@ -299,13 +300,13 @@ class CustomJsonScanner(object):
end = s.find("\"", idx)
while not found:
try:
- if s[end-1] != "\\":
+ if s[end - 1] != "\\":
found = True
else:
- end = s.find("\"", end+1)
+ end = s.find("\"", end + 1)
except Exception:
found = True
- return s[idx:end].decode("string-escape"), end+1
+ return s[idx:end].decode("string-escape"), end + 1
def __enter__(self):
"""