code: def translate_syntax_error(error, source=None):
      
      error.source = source
      error.translated = True
      exc_info = (error.__class__, error, None)
      filename = error.filename
      if filename is None:
          filename = '<unknown>'
      return fake_exc_info(exc_info, filename, error.lineno)
docs: Rewrites a syntax error to please traceback systems.