Home | History | Annotate | Download | only in tools

Lines Matching full:suffix

34 # Suffix which distinguishes trybots from normal bots.
139 returned without the trybot suffix."""
156 def _WithoutSuffix(string, suffix):
157 """ Returns a copy of string 'string', but with suffix 'suffix' removed.
158 Raises ValueError if string does not end with suffix. """
159 if not string.endswith(suffix):
160 raise ValueError('_WithoutSuffix: string %s does not end with suffix %s' % (
161 string, suffix))
162 return string[:-len(suffix)]