Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
python-poetry
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
python-poetry
Commits
2e70578d
Unverified
Commit
2e70578d
authored
May 17, 2018
by
Sébastien Eustace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compatibility with Python <3.6
parent
04e1f604
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
poetry/semver/semver/version.py
+5
-5
poetry/semver/semver/version_range.py
+1
-1
No files found.
poetry/semver/semver/version.py
View file @
2e70578d
...
...
@@ -152,12 +152,12 @@ class Version(VersionRange):
text
=
text
.
rstrip
(
'.'
)
major
=
int
(
match
[
1
]
)
minor
=
int
(
match
[
2
])
if
match
[
2
]
else
None
patch
=
int
(
match
[
3
])
if
match
[
3
]
else
None
major
=
int
(
match
.
group
(
1
)
)
minor
=
int
(
match
.
group
(
2
))
if
match
.
group
(
2
)
else
None
patch
=
int
(
match
.
group
(
3
))
if
match
.
group
(
3
)
else
None
pre
=
match
[
4
]
build
=
match
[
5
]
pre
=
match
.
group
(
4
)
build
=
match
.
group
(
5
)
if
build
:
build
=
build
.
lstrip
(
'+'
)
...
...
poetry/semver/semver/version_range.py
View file @
2e70578d
...
...
@@ -318,7 +318,7 @@ class VersionRange(VersionConstraint):
if
not
ranges
:
return
current
return
VersionUnion
.
of
(
*
ranges
,
current
)
return
VersionUnion
.
of
(
*
(
ranges
+
[
current
])
)
raise
ValueError
(
'Unknown VersionConstraint type {}.'
.
format
(
other
))
...
...
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