Skip to content

Commit fca90d1

Browse files
committed
Ensure README.md is closed after reading
1 parent ea0376e commit fca90d1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,12 @@ def lib(*names, **kw):
7676
'systemd/strv.c'],
7777
extra_compile_args=['-std=c99', '-Werror=implicit-function-declaration'],
7878
**lib('libsystemd', 'libsystemd-login', **defines))
79+
with open("README.md") as f:
80+
long_description = f.read()
7981
setup (name = 'systemd-python',
8082
version = version,
8183
description = 'Python interface for libsystemd',
82-
long_description=open("README.md").read(),
84+
long_description=long_description,
8385
long_description_content_type="text/markdown",
8486
author_email = '[email protected]',
8587
maintainer = 'systemd developers',

0 commit comments

Comments
 (0)