def makedev(self, tarinfo, targetpath):
if not hasattr(os, "<STR_LIT>") or not hasattr(os, "<STR_LIT>"):<EOL><INDENT>raise ExtractError("<STR_LIT>")<EOL><DEDENT>mode = tarinfo.mode<EOL>if tarinfo.isblk():<EOL><INDENT>mode |= stat.S_IFBLK<EOL><DEDENT>else:<EOL><INDENT>mode |= stat.S_IFCHR<EOL><DEDENT>os.mknod(targetpath, mode,<EOL>os.makedev(tarinfo.devmajor, tarinfo.devminor))<EOL>
Make a character or block device called targetpath.