diff options
author | Maximilian Hils <git@maximilianhils.com> | 2016-05-29 01:23:39 -0700 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2016-05-29 01:23:39 -0700 |
commit | 17382b963e22de8cb395a99e529b256e03d440ce (patch) | |
tree | bad14d80e1580995be2fc48780669bba747b8552 /examples/custom_contentviews.py | |
parent | 8638000cfa859ca2ae5fb39c58cbdf5e6fc10c19 (diff) | |
download | mitmproxy-17382b963e22de8cb395a99e529b256e03d440ce.tar.gz mitmproxy-17382b963e22de8cb395a99e529b256e03d440ce.tar.bz2 mitmproxy-17382b963e22de8cb395a99e529b256e03d440ce.zip |
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" |