@check_for(Definition)<EOL><INDENT>def check_unicode_docstring(self, definition, docstring):<DEDENT>
if '<STR_LIT>' in definition.module.future_imports:<EOL><INDENT>return<EOL><DEDENT>if docstring and sys.version_info[<NUM_LIT:0>] <= <NUM_LIT:2>:<EOL><INDENT>if not is_ascii(docstring) and not docstring.startswith(<EOL>('<STR_LIT:u>', '<STR_LIT>')):<EOL><INDENT>return violations.D302()<EOL><DEDENT><DEDENT>
r'''D302: Use u""" for docstrings with Unicode.

        For Unicode docstrings, use u"""Unicode triple-quoted strings""".