mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-24 08:04:44 +00:00
Use Path in setup.py get_long_description()
This commit is contained in:
parent
2f40fe8415
commit
6af59ec37e
1 changed files with 1 additions and 2 deletions
3
setup.py
3
setup.py
|
|
@ -55,8 +55,7 @@ RELEASE_DATE_FILE = "_release_date"
|
|||
def get_long_description():
|
||||
"""Try to read long description from README.rst."""
|
||||
try:
|
||||
with open("README.rst") as f:
|
||||
return f.read()
|
||||
return Path("README.rst").read_text()
|
||||
except Exception:
|
||||
return Description
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue