##// END OF EJS Templates
templatefilters: stop using str as a variable name...
Pulkit Goyal -
r36570:a185b1af default
parent child Browse files
Show More
@@ -264,9 +264,9 b' def lower(text):'
264 264 return encoding.lower(text)
265 265
266 266 @templatefilter('nonempty')
267 def nonempty(str):
267 def nonempty(text):
268 268 """Any text. Returns '(none)' if the string is empty."""
269 return str or "(none)"
269 return text or "(none)"
270 270
271 271 @templatefilter('obfuscate')
272 272 def obfuscate(text):
General Comments 0
You need to be logged in to leave comments. Login now