old_contents: # This file is part of h5py, a Python interface to the HDF5 library.
  #
  # http://www.h5py.org
  #
  # Copyright 2008-2013 Andrew Collette and contributors
  #
  # License:  Standard 3-clause BSD; see "license.txt" for full license terms
  #           and contributor agreement.
  
  """
      Versioning module for h5py.
  """
  
  from __future__ import absolute_import
  
  from . import h5 as _h5
  from distutils.version import StrictVersion as _sv
  import sys
  import numpy
  
  version = "2.7.0rc3"
  
  _exp = _sv(version)
  
  version_tuple = _exp.version + ((''.join(str(x) for x in _exp.prerelease),) if _exp.prerelease is not None else ('',))
  
  hdf5_version_tuple = _h5.get_libversion()
  hdf5_version = "%d.%d.%d" % hdf5_version_tuple
  
  api_version_tuple = (1,8)
  api_version = "1.8"
  
  info = """\
  Summary of the h5py configuration
  ---------------------------------
  
  h5py    %(h5py)s
  HDF5    %(hdf5)s
  Python  %(python)s
  sys.platform    %(platform)s
  sys.maxsize     %(maxsize)s
  numpy   %(numpy)s
  """ % { 'h5py': version,
          'hdf5': hdf5_version,
          'python': sys.version,
          'platform': sys.platform,
          'maxsize': sys.maxsize,
          'numpy': numpy.__version__ }
  
new_contents: # This file is part of h5py, a Python interface to the HDF5 library.
  #
  # http://www.h5py.org
  #
  # Copyright 2008-2013 Andrew Collette and contributors
  #
  # License:  Standard 3-clause BSD; see "license.txt" for full license terms
  #           and contributor agreement.
  
  """
      Versioning module for h5py.
  """
  
  from __future__ import absolute_import
  
  from collections import namedtuple
  from . import h5 as _h5
  import sys
  import numpy
  
  # All should be integers, except pre, as validating versions is more than is
  # needed for our use case
  _H5PY_VERSION_CLS = namedtuple("_H5PY_VERSION_CLS", "major minor bugfix pre post dev")
  
  version_tuple = _H5PY_VERSION_CLS(2, 7, 0, "rc3", None, None)
  
  version = "{0.major:d}.{0.minor:d}.{0.bugfix:d}".format(version_tuple)
  if version_tuple.pre is not None:
      version += version_tuple.pre
  if version_tuple.post is not None:
      version += ".post{0.post:d}".format(version_tuple)
  if version_tuple.dev is not None:
      version += ".dev{0.dev:d}".format(version_tuple)
  
  hdf5_version_tuple = _h5.get_libversion()
  hdf5_version = "%d.%d.%d" % hdf5_version_tuple
  
  api_version_tuple = (1,8)
  api_version = "%d.%d" % api_version_tuple
  
  info = """\
  Summary of the h5py configuration
  ---------------------------------
  
  h5py    %(h5py)s
  HDF5    %(hdf5)s
  Python  %(python)s
  sys.platform    %(platform)s
  sys.maxsize     %(maxsize)s
  numpy   %(numpy)s
  """ % { 'h5py': version,
          'hdf5': hdf5_version,
          'python': sys.version,
          'platform': sys.platform,
          'maxsize': sys.maxsize,
          'numpy': numpy.__version__ }
  
subject: Fix version_tuple to make it PEP440 compliant