def p_spdx_id(self, p):
if six.PY2:<EOL><INDENT>value = p[<NUM_LIT:2>].decode(encoding='<STR_LIT:utf-8>')<EOL><DEDENT>else:<EOL><INDENT>value = p[<NUM_LIT:2>]<EOL><DEDENT>if not self.builder.doc_spdx_id_set:<EOL><INDENT>self.builder.set_doc_spdx_id(self.document, value)<EOL><DEDENT>else:<EOL><INDENT>self.builder.set_file_spdx_id(self.document, value)<EOL><DEDENT>
spdx_id : SPDX_ID LINE