Skip to content

Commit

Permalink
replace win line endings
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Oct 24, 2020
1 parent 4650d44 commit 241f8ed
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions setup.py
Expand Up @@ -106,8 +106,10 @@ def get_description():
stdout, stderr = p.communicate()
if p.returncode != 0:
raise RuntimeError(stderr)
assert not stderr, stderr
return stdout.decode('utf8')
data = stdout.decode('utf8')
if WINDOWS:
data = data.replace('\r\n', '\n')
return data


@contextlib.contextmanager
Expand Down

0 comments on commit 241f8ed

Please sign in to comment.