old_contents: # -*- coding: utf-8 -*-
  from setuptools import setup, find_packages
  from frules import __version__ as version
  import os
  
  
  def strip_comments(l):
      return l.split('#', 1)[0].strip()
  
  
  def reqs(*f):
      return list(filter(None, [strip_comments(l) for l in open(
          os.path.join(os.getcwd(), *f)).readlines()]))
  
  install_requires = reqs('requirements.txt')
  
  test_requires = [
      'py.test',
  ]
  
  setup(
      name='frules',
      version=version,
      description='simple functional fuzzy rules implementation',
      author='Michał Jaworski',
      author_email='swistakm@gmail.com',
      url='https://github.com/swistakm/frules',
      packages=find_packages(),
      classifiers=[
          'Development Status :: 4 - Beta',
          'Intended Audience :: Developers',
          'License :: OSI Approved :: BSD License',
          'Operating System :: OS Independent',
          'Programming Language :: Python',
      ],
      # Make setuptools include all data files under version control,
      # svn and CVS by default
      include_package_data=True,
      zip_safe=False,
      install_requires=install_requires,
      tests_require=test_requires,
  )
  
new_contents: # -*- coding: utf-8 -*-
  from setuptools import setup, find_packages
  from frules import __version__ as version
  import os
  
  
  def strip_comments(l):
      return l.split('#', 1)[0].strip()
  
  
  def reqs(*f):
      return list(filter(None, [strip_comments(l) for l in open(
          os.path.join(os.getcwd(), *f)).readlines()]))
  
  install_requires = reqs('requirements.txt')
  
  test_requires = [
      'py.test',
  ]
  
  setup(
      name='frules',
      version=version,
      description='simple functional fuzzy rules implementation',
      author='Michał Jaworski',
      author_email='swistakm@gmail.com',
      url='https://github.com/swistakm/frules',
      packages=find_packages(),
      classifiers=[
          'Development Status :: 4 - Beta',
          'Intended Audience :: Developers',
          'License :: OSI Approved :: BSD License',
          'Operating System :: OS Independent',
          'Programming Language :: Python',
      ],
      # Make setuptools include all data files under version control,
      # svn and CVS by default
      include_package_data=True,
      zip_safe=False,
      setup_requires=['setuptools_git'],
      install_requires=install_requires,
      tests_require=test_requires,
  )
  
subject: fix setup.py