mercurial/templatefilters.py
changeset 36552 a185b1af207c
parent 36498 b546181ae451
child 36563 9d71bd25554b
--- a/mercurial/templatefilters.py	Thu Mar 01 18:15:58 2018 -0500
+++ b/mercurial/templatefilters.py	Fri Mar 02 04:59:27 2018 +0530
@@ -264,9 +264,9 @@
     return encoding.lower(text)
 
 @templatefilter('nonempty')
-def nonempty(str):
+def nonempty(text):
     """Any text. Returns '(none)' if the string is empty."""
-    return str or "(none)"
+    return text or "(none)"
 
 @templatefilter('obfuscate')
 def obfuscate(text):