diff options
author | Thomas Kriechbaumer <Kriechi@users.noreply.github.com> | 2016-05-29 11:03:54 +0200 |
---|---|---|
committer | Thomas Kriechbaumer <Kriechi@users.noreply.github.com> | 2016-05-29 11:03:54 +0200 |
commit | c707479bcd5a8ebb5d6bc8f54a5879176db46b3a (patch) | |
tree | 8fb49cb2bfa2f68b2841f2a4028c91eb781e4587 /examples/custom_contentviews.py | |
parent | 979c7fc319cbf551b9ea14062387f195b208b8fa (diff) | |
parent | 17382b963e22de8cb395a99e529b256e03d440ce (diff) | |
download | mitmproxy-c707479bcd5a8ebb5d6bc8f54a5879176db46b3a.tar.gz mitmproxy-c707479bcd5a8ebb5d6bc8f54a5879176db46b3a.tar.bz2 mitmproxy-c707479bcd5a8ebb5d6bc8f54a5879176db46b3a.zip |
Merge pull request #1173 from mitmproxy/format-examples
Format examples
Diffstat (limited to 'examples/custom_contentviews.py')
-rw-r--r-- | examples/custom_contentviews.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/custom_contentviews.py b/examples/custom_contentviews.py index f3b7317f..6cc9314c 100644 --- a/examples/custom_contentviews.py +++ b/examples/custom_contentviews.py @@ -23,7 +23,8 @@ class ViewPigLatin(contentviews.View): ret = '' for word in words: idx = -1 - while word[idx] in string.punctuation and (idx * -1) != len(word): idx -= 1 + while word[idx] in string.punctuation and (idx * -1) != len(word): + idx -= 1 if word[0].lower() in 'aeiou': if idx == -1: ret += word[0:] + "hay" |