old_contents: import logging
  log = logging.getLogger(__name__)
  
  import sip
  try:
      sip.setapi('QString', 2)
      sip.setapi('QVariant', 2)
  except ValueError, e:
      log.error(e)
  
  try:
      from PyQt4 import QtCore as QtCore_
      from PyQt4 import QtGui as QtGui_
      from PyQt4.QtCore import pyqtSlot as Slot, pyqtSignal as Signal
  except ImportError, e:
      from PySide import QtCore as QtCore_
      from PySide import QtGui as QtGui_
      from PySide.QtCore import Slot, Signal
  
  
  QtCore = QtCore_
  QtGui = QtGui_
  Qt = QtCore_.Qt
  
  __all__ = ['QtCore', 'QtGui', 'Qt', 'Signal', 'Slot']
  
  
  
new_contents: import logging
  log = logging.getLogger(__name__)
  
  import sip
  try:
      sip.setapi('QString', 2)
      sip.setapi('QVariant', 2)
      sip.setapi('QDate', 2)
      sip.setapi('QDateTime', 2)
      sip.setapi('QTextStream', 2)
      sip.setapi('QTime', 2)
      sip.setapi('QUrl', 2)
  except ValueError, e:
      log.error(e)
  
  try:
      from PyQt4 import QtCore as QtCore_
      from PyQt4 import QtGui as QtGui_
      from PyQt4.QtCore import pyqtSlot as Slot, pyqtSignal as Signal
  except ImportError, e:
      from PySide import QtCore as QtCore_
      from PySide import QtGui as QtGui_
      from PySide.QtCore import Slot, Signal
  
  
  QtCore = QtCore_
  QtGui = QtGui_
  Qt = QtCore_.Qt
  
  __all__ = ['QtCore', 'QtGui', 'Qt', 'Signal', 'Slot']
  
subject: set more data types to sip version 2