aboutsummaryrefslogtreecommitdiffstats
path: root/examples/custom_contentviews.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/custom_contentviews.py')
-rw-r--r--examples/custom_contentviews.py3
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"