old_contents: # Licensed under a 3-clause BSD style license - see LICENSE.rst
  """Defines constants used in `astropy.vo.samp`."""
  
  import os
  
  DATA_DIR = os.path.join(os.path.dirname(__file__), 'data')
  
  __all__ = ['SAMP_STATUS_OK', 'SAMP_STATUS_WARNING', 'SAMP_STATUS_ERROR',
             'SAMP_HUB_SINGLE_INSTANCE', 'SAMP_HUB_MULTIPLE_INSTANCE',
             'SAFE_MTYPES', 'SAMP_ICON']
  
  __profile_version__ = "1.3"
  
  #: General constant for samp.ok status string
  SAMP_STATUS_OK = "samp.ok"
  #: General constant for samp.warning status string
  SAMP_STATUS_WARNING = "samp.warning"
  #: General constant for samp.error status string
  SAMP_STATUS_ERROR = "samp.error"
  
  #: General constant to specify single instance Hub running mode
  SAMP_HUB_SINGLE_INSTANCE = "single"
  #: General constant to specify multiple instance Hub running mode
  SAMP_HUB_MULTIPLE_INSTANCE = "multiple"
  
  SAFE_MTYPES = ["samp.app.*", "samp.msg.progress", "table.*", "image.*",
                 "coord.*", "spectrum.*", "bibcode.*", "voresource.*"]
  
  with open(os.path.join(DATA_DIR, 'astropy_icon.png'), 'rb') as f:
      SAMP_ICON = f.read()
  
  try:
      import ssl
  except ImportError:
      SSL_SUPPORT = False
  else:
      SSL_SUPPORT = True
      del ssl
new_contents: # Licensed under a 3-clause BSD style license - see LICENSE.rst
  """Defines constants used in `astropy.vo.samp`."""
  
  import os
  
  from ...utils.data import get_pkg_data_filename
  
  __all__ = ['SAMP_STATUS_OK', 'SAMP_STATUS_WARNING', 'SAMP_STATUS_ERROR',
             'SAMP_HUB_SINGLE_INSTANCE', 'SAMP_HUB_MULTIPLE_INSTANCE',
             'SAFE_MTYPES', 'SAMP_ICON']
  
  __profile_version__ = "1.3"
  
  #: General constant for samp.ok status string
  SAMP_STATUS_OK = "samp.ok"
  #: General constant for samp.warning status string
  SAMP_STATUS_WARNING = "samp.warning"
  #: General constant for samp.error status string
  SAMP_STATUS_ERROR = "samp.error"
  
  #: General constant to specify single instance Hub running mode
  SAMP_HUB_SINGLE_INSTANCE = "single"
  #: General constant to specify multiple instance Hub running mode
  SAMP_HUB_MULTIPLE_INSTANCE = "multiple"
  
  SAFE_MTYPES = ["samp.app.*", "samp.msg.progress", "table.*", "image.*",
                 "coord.*", "spectrum.*", "bibcode.*", "voresource.*"]
  
  with open(get_pkg_data_filename('data/astropy_icon.png'), 'rb') as f:
      SAMP_ICON = f.read()
  
  try:
      import ssl
  except ImportError:
      SSL_SUPPORT = False
  else:
      SSL_SUPPORT = True
      del ssl
subject: Make use of get_pkg_data_filename for icon