Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
49364a9e
Commit
49364a9e
authored
Jan 17, 2021
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix AttributeError in Description validation. Fixes #2539.
parent
c5e0397b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
changelog.d/2539.misc.rst
changelog.d/2539.misc.rst
+1
-0
setuptools/dist.py
setuptools/dist.py
+1
-1
No files found.
changelog.d/2539.misc.rst
0 → 100644
View file @
49364a9e
Fix AttributeError in Description validation.
setuptools/dist.py
View file @
49364a9e
...
...
@@ -122,7 +122,7 @@ def single_line(val):
# quick and dirty validation for description pypa/setuptools#1390
if
'
\
n
'
in
val
:
# TODO after 2021-07-31: Replace with `raise ValueError("newlines not allowed")`
warnings
.
UserWarning
(
"newlines not allowed and will break in the future"
)
warnings
.
warn
(
"newlines not allowed and will break in the future"
)
val
=
val
.
replace
(
'
\
n
'
,
' '
)
return
val
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment