@property<EOL><INDENT>def file_mode(self):<DEDENT>
fms = self.attributes['<STR_LIT>']<EOL>eax = set()<EOL>if isinstance(fms, six.string_types):<EOL><INDENT>fms = shlex.split(fms)<EOL><DEDENT>for fm in fms:<EOL><INDENT>if fm == '<STR_LIT>':<EOL><INDENT>eax.add('<STR_LIT>')<EOL>eax.add('<STR_LIT>')<EOL><DEDENT>elif fm in ['<STR_LIT>', '<STR_LIT>']:<EOL><INDENT>eax.add(fm)<EOL><DEDENT>else:<EOL><INDENT>raise Exception('<STR_LIT>' + fm)<EOL><DEDENT><DEDENT>return eax<EOL>
onefile, fpp, or both