def python3_porting_mode(self):
self.disable("<STR_LIT:all>")<EOL>self.enable("<STR_LIT>")<EOL>if self._error_mode:<EOL><INDENT>for msg_id in self._checker_messages("<STR_LIT>"):<EOL><INDENT>if msg_id.startswith("<STR_LIT:E>"):<EOL><INDENT>self.enable(msg_id)<EOL><DEDENT>else:<EOL><INDENT>self.disable(msg_id)<EOL><DEDENT><DEDENT><DEDENT>config_parser = self.cfgfile_parser<EOL>if config_parser.has_option("<STR_LIT>", "<STR_LIT>"):<EOL><INDENT>value = config_parser.get("<STR_LIT>", "<STR_LIT>")<EOL>self.global_set_option("<STR_LIT>", value)<EOL><DEDENT>self._python3_porting_mode = True<EOL>
Disable all other checkers and enable Python 3 warnings.