parameters: (self, output_file)
docstring: Generate the pretty-printer function code from the gathered
          constant definitions.
docstring_summary: Generate the pretty-printer function code from the gathered
          constant definitions.
docstring_tokens: Generate the pretty - printer function code from the gathered constant definitions .
function: def write_file(self, output_file):
          """Generate the pretty-printer function code from the gathered
          constant definitions.
          """
          data = {}
          data['status_cases'] = self._make_status_cases()
          data['ecc_curve_cases'] = self._make_ecc_curve_cases()
          data['dh_group_cases'] = self._make_dh_group_cases()
          data['key_type_cases'] = self._make_key_type_cases()
          data['key_type_code'] = (self._make_ecc_key_type_code() +
                                   self._make_dh_key_type_code())
          data['hash_algorithm_cases'] = self._make_hash_algorithm_cases()
          data['ka_algorithm_cases'] = self._make_ka_algorithm_cases()
          data['algorithm_cases'] = self._make_algorithm_cases()
          data['algorithm_code'] = self._make_algorithm_code()
          data['key_usage_code'] = self._make_key_usage_code()
          output_file.write(OUTPUT_TEMPLATE % data)
function_tokens: def write_file ( self , output_file ) : data = { } data [ 'status_cases' ] = self . _make_status_cases ( ) data [ 'ecc_curve_cases' ] = self . _make_ecc_curve_cases ( ) data [ 'dh_group_cases' ] = self . _make_dh_group_cases ( ) data [ 'key_type_cases' ] = self . _make_key_type_cases ( ) data [ 'key_type_code' ] = ( self . _make_ecc_key_type_code ( ) + self . _make_dh_key_type_code ( ) ) data [ 'hash_algorithm_cases' ] = self . _make_hash_algorithm_cases ( ) data [ 'ka_algorithm_cases' ] = self . _make_ka_algorithm_cases ( ) data [ 'algorithm_cases' ] = self . _make_algorithm_cases ( ) data [ 'algorithm_code' ] = self . _make_algorithm_code ( ) data [ 'key_usage_code' ] = self . _make_key_usage_code ( ) output_file . write ( OUTPUT_TEMPLATE % data )