from distutils.core import setup
import os

def read(fname):
    return open(os.path.join(os.path.dirname(__file__), fname)).read()


setup(
    name='facebook-sdk',
    version='0.3.2',
    description='This client library is designed to support the Facebook '
                'Graph API and the official Facebook JavaScript SDK, which '
                'is the canonical way to implement Facebook authentication.',
    author='Facebook',
    maintainer='Martey Dodoo',
    maintainer_email='facebook-sdk@marteydodoo.com',
    url='https://github.com/pythonforfacebook/facebook-sdk',
    license='Apache',
    py_modules=[
        'facebook',
    ],
    long_description=read("README.rst"),
    classifiers=[
        'License :: OSI Approved :: Apache Software License',
    ],
)

from distutils.core import setup

setup(
    name='facebook-sdk',
    version='0.3.2',
    description='This client library is designed to support the Facebook '
                'Graph API and the official Facebook JavaScript SDK, which '
                'is the canonical way to implement Facebook authentication.',
    author='Facebook',
    maintainer='Martey Dodoo',
    maintainer_email='facebook-sdk@marteydodoo.com',
    url='https://github.com/pythonforfacebook/facebook-sdk',
    license='Apache',
    py_modules=[
        'facebook',
    ],
    long_description=open("README.rst").read(),
    classifiers=[
        'License :: OSI Approved :: Apache Software License',
    ],
)

Change way README is imported.
Change way README is imported.

The custom read function is unnecessary since only one file is being
accessed. Removing it reduces the amount of code.

  from distutils.core import setup
- import os
- 
- def read(fname):
-     return open(os.path.join(os.path.dirname(__file__), fname)).read()
- 
  
  setup(
      name='facebook-sdk',
      version='0.3.2',
      description='This client library is designed to support the Facebook '
                  'Graph API and the official Facebook JavaScript SDK, which '
                  'is the canonical way to implement Facebook authentication.',
      author='Facebook',
      maintainer='Martey Dodoo',
      maintainer_email='facebook-sdk@marteydodoo.com',
      url='https://github.com/pythonforfacebook/facebook-sdk',
      license='Apache',
      py_modules=[
          'facebook',
      ],
-     long_description=read("README.rst"),
+     long_description=open("README.rst").read(),
      classifiers=[
          'License :: OSI Approved :: Apache Software License',
      ],
  )
  
Change way README is imported.
## Code Before:
from distutils.core import setup
import os

def read(fname):
    return open(os.path.join(os.path.dirname(__file__), fname)).read()


setup(
    name='facebook-sdk',
    version='0.3.2',
    description='This client library is designed to support the Facebook '
                'Graph API and the official Facebook JavaScript SDK, which '
                'is the canonical way to implement Facebook authentication.',
    author='Facebook',
    maintainer='Martey Dodoo',
    maintainer_email='facebook-sdk@marteydodoo.com',
    url='https://github.com/pythonforfacebook/facebook-sdk',
    license='Apache',
    py_modules=[
        'facebook',
    ],
    long_description=read("README.rst"),
    classifiers=[
        'License :: OSI Approved :: Apache Software License',
    ],
)

## Instruction:
Change way README is imported.
## Code After:
from distutils.core import setup

setup(
    name='facebook-sdk',
    version='0.3.2',
    description='This client library is designed to support the Facebook '
                'Graph API and the official Facebook JavaScript SDK, which '
                'is the canonical way to implement Facebook authentication.',
    author='Facebook',
    maintainer='Martey Dodoo',
    maintainer_email='facebook-sdk@marteydodoo.com',
    url='https://github.com/pythonforfacebook/facebook-sdk',
    license='Apache',
    py_modules=[
        'facebook',
    ],
    long_description=open("README.rst").read(),
    classifiers=[
        'License :: OSI Approved :: Apache Software License',
    ],
)
