Skip to content

Commit 4667eb0

Browse files
authored
Merge pull request #1112 from jdufresne/setup-close-file
Always deterministically close files in setup.py
2 parents 3f4ba54 + 0d6c333 commit 4667eb0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

setup.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,18 @@
44

55
from setuptools import find_packages, setup
66

7+
8+
def readall(path):
9+
with open(path, encoding="utf-8") as fp:
10+
return fp.read()
11+
12+
713
setup(
814
name="django-debug-toolbar",
915
version="1.10.1",
1016
description="A configurable set of panels that display various debug "
1117
"information about the current request/response.",
12-
long_description=open("README.rst", encoding="utf-8").read(),
18+
long_description=readall("README.rst"),
1319
author="Rob Hudson",
1420
author_email="[email protected]",
1521
url="https://github.com/jazzband/django-debug-toolbar",

0 commit comments

Comments
 (0)