parameters: (bug)
return_statement: return escape('bt_' + smash('bug_category') + '_' + smash('bug_type'))
docstring: Create a new bug attribute from bug by category and type.
  
      The result will be used as CSS class selector in the final report.
docstring_summary: Create a new bug attribute from bug by category and type.
docstring_tokens: Create a new bug attribute from bug by category and type .
function: def category_type_name(bug):
      """ Create a new bug attribute from bug by category and type.
  
      The result will be used as CSS class selector in the final report. """
  
      def smash(key):
          """ Make value ready to be HTML attribute value. """
  
          return bug.get(key, '').lower().replace(' ', '_').replace("'", '')
  
      return escape('bt_' + smash('bug_category') + '_' + smash('bug_type'))
function_tokens: def category_type_name ( bug ) : def smash ( key ) : """ Make value ready to be HTML attribute value. """ return bug . get ( key , '' ) . lower ( ) . replace ( ' ' , '_' ) . replace ( "'" , '' ) return escape ( 'bt_' + smash ( 'bug_category' ) + '_' + smash ( 'bug_type' ) )