code: def check_unicode_docstring(self, definition, docstring):
          r'''D302: Use uUnicode triple-quoted strings""".
  
          '''
          if 'unicode_literals' in definition.module.future_imports:
              return
  
          # Just check that docstring is unicode, check_triple_double_quotes
          # ensures the correct quotes.
          if docstring and sys.version_info[0] <= 2:
              if not is_ascii(docstring) and not docstring.startswith(
                      ('u', 'ur')):
                  return violations.D302()
docs: r'''D302: Use u""" for docstrings with Unicode.
  
          For Unicode docstrings, use u"""Unicode triple-quoted strings""".