Submitter | phabricator |
---|---|
Date | March 2, 2018, 12:56 a.m. |
Message ID | <da1ba86ac39079af4fb7a6c303923805@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/28636/ |
State | Not Applicable |
Headers | show |
Comments
Patch
diff --git a/mercurial/templatefilters.py b/mercurial/templatefilters.py --- a/mercurial/templatefilters.py +++ b/mercurial/templatefilters.py @@ -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):