##// END OF EJS Templates
py3: don't use lambda assignments.
marcink -
r4397:f5f03a80 default
parent child Browse files
Show More
@@ -783,13 +783,24 b' flash = Flash()'
783 # SCM FILTERS available via h.
783 # SCM FILTERS available via h.
784 #==============================================================================
784 #==============================================================================
785 from rhodecode.lib.vcs.utils import author_name, author_email
785 from rhodecode.lib.vcs.utils import author_name, author_email
786 from rhodecode.lib.utils2 import credentials_filter, age, age_from_seconds
786 from rhodecode.lib.utils2 import age, age_from_seconds
787 from rhodecode.model.db import User, ChangesetStatus
787 from rhodecode.model.db import User, ChangesetStatus
788
788
789 capitalize = lambda x: x.capitalize()
789
790 email = author_email
790 email = author_email
791 short_id = lambda x: x[:12]
791
792 hide_credentials = lambda x: ''.join(credentials_filter(x))
792
793 def capitalize(raw_text):
794 return raw_text.capitalize()
795
796
797 def short_id(long_id):
798 return long_id[:12]
799
800
801 def hide_credentials(url):
802 from rhodecode.lib.utils2 import credentials_filter
803 return credentials_filter(url)
793
804
794
805
795 import pytz
806 import pytz
General Comments 0
You need to be logged in to leave comments. Login now