mirror of
https://github.com/jazzband/django-admin-sortable.git
synced 2026-03-16 22:10:30 +00:00
Use a context manager to read README.rst
This commit is contained in:
parent
3209998569
commit
eb3f18b09e
1 changed files with 2 additions and 4 deletions
6
setup.py
6
setup.py
|
|
@ -1,9 +1,7 @@
|
|||
from setuptools import setup, find_packages
|
||||
|
||||
try:
|
||||
README = open('README.rst').read()
|
||||
except:
|
||||
README = None
|
||||
with open('README.rst') as readme_file:
|
||||
README = readme_file.read()
|
||||
|
||||
setup(
|
||||
author='Brandon Taylor',
|
||||
|
|
|
|||
Loading…
Reference in a new issue