old_contents: '''
  Clipboard SDL2: an implementation of the Clipboard using sdl2.
  '''
  
  __all__ = ('ClipboardSDL2', )
  
  from kivy.utils import platform
  from kivy.core.clipboard import ClipboardBase
  
  if platform() not in ('win', 'linux', 'macosx', 'android', 'ios'):
      raise SystemError('unsupported platform for pygame clipboard')
  
  try:
      from kivy.core.clipboard._clipboard_sdl2 import _get_text, _has_text, _set_text
  except ImportError:
      raise SystemError('extension not copiled??')
  
  
  class ClipboardSDL2(ClipboardBase):
  
      def paste(self):
          return _get_text() if _has_text() else ''
  
      def copy(self, data=''):
          data = data.encode('utf-8')
          _set_text(data)
  
      def get_types(self):
          return 'text/plain'
  
new_contents: '''
  Clipboard SDL2: an implementation of the Clipboard using sdl2.
  '''
  
  __all__ = ('ClipboardSDL2', )
  
  from kivy.utils import platform
  from kivy.core.clipboard import ClipboardBase
  
  if platform not in ('win', 'linux', 'macosx', 'android', 'ios'):
      raise SystemError('unsupported platform for pygame clipboard')
  
  try:
      from kivy.core.clipboard._clipboard_sdl2 import _get_text, _has_text, _set_text
  except ImportError:
      raise SystemError('extension not compiled?')
  
  
  class ClipboardSDL2(ClipboardBase):
  
      def paste(self):
          return _get_text() if _has_text() else ''
  
      def copy(self, data=''):
          data = data.encode('utf-8')
          _set_text(data)
  
      def get_types(self):
          return 'text/plain'
  
subject: Remove deprecated function call