old_contents: #
  #  This is the regobj setuptools script.
  #  Originally developed by Ryan Kelly, 2009.
  #
  #  This script is placed in the public domain.
  #
  
  from distutils.core import setup
  
  #  If we did a straight `import regobj` here we wouldn't be able
  #  to build on non-win32 machines.
  regobj = {}
  try:
      execfile("regobj.py",regobj)
  except ImportError:
      pass
  VERSION = regobj["__version__"]
  
  NAME = "regobj"
  DESCRIPTION = "Pythonic object-based access to the Windows Registry."
  LONG_DESC = regobj["__doc__"]
  AUTHOR = "Ryan Kelly"
  AUTHOR_EMAIL = "ryan@rfk.id.au"
  URL="http://www.rfk.id.au/software/"
  LICENSE = "MIT"
  KEYWORDS = "windows registry"
  
  setup(name=NAME,
        version=VERSION,
        author=AUTHOR,
        author_email=AUTHOR_EMAIL,
        url=URL,
        description=DESCRIPTION,
        long_description=LONG_DESC,
        license=LICENSE,
        keywords=KEYWORDS,
        py_modules=["regobj"],
       )
  
  
new_contents: #
  #  This is the regobj setuptools script.
  #  Originally developed by Ryan Kelly, 2009.
  #
  #  This script is placed in the public domain.
  #
  
  from distutils.core import setup
  
  #  Safely extract the docstring and version info from the module.
  #  If we did a straight `import regobj` here we wouldn't be able
  #  to build on non-win32 machines.
  try:
      next = next
  except NameError:
      def next(i):
          return i.next()
  regobj = {}
  try:
      src = open("regobj.py")
      try:
          lines = []
          ln = next(src)
          while "__version__" not in ln:
              lines.append(ln)
              ln = next(src)
          while "__ver" in ln:
              lines.append(ln)
              ln = next(src)
          exec("".join(lines),regobj)
      finally:
          src.close()
  except ImportError:
      pass
  VERSION = regobj["__version__"]
  
  NAME = "regobj"
  DESCRIPTION = "Pythonic object-based access to the Windows Registry."
  LONG_DESC = regobj["__doc__"]
  AUTHOR = "Ryan Kelly"
  AUTHOR_EMAIL = "ryan@rfk.id.au"
  URL="http://www.rfk.id.au/software/"
  LICENSE = "MIT"
  KEYWORDS = "windows registry"
  
  setup(name=NAME,
        version=VERSION,
        author=AUTHOR,
        author_email=AUTHOR_EMAIL,
        url=URL,
        description=DESCRIPTION,
        long_description=LONG_DESC,
        license=LICENSE,
        keywords=KEYWORDS,
        py_modules=["regobj"],
       )
  
  
subject: fix setup.py for python3 compatability