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
59a9fd3f
Commit
59a9fd3f
authored
May 22, 2022
by
Mathieu Kniewallner
Committed by
Bjorn Neergaard
May 22, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: comply with mypy `redudant-expr`
parent
b4298cc4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
src/poetry/repositories/pool.py
+1
-3
src/poetry/utils/authenticator.py
+1
-1
No files found.
src/poetry/repositories/pool.py
View file @
59a9fd3f
...
@@ -46,9 +46,7 @@ class Pool(Repository):
...
@@ -46,9 +46,7 @@ class Pool(Repository):
return
self
.
_has_primary_repositories
return
self
.
_has_primary_repositories
def
has_repository
(
self
,
name
:
str
)
->
bool
:
def
has_repository
(
self
,
name
:
str
)
->
bool
:
name
=
name
.
lower
()
if
name
is
not
None
else
None
return
name
.
lower
()
in
self
.
_lookup
return
name
in
self
.
_lookup
def
repository
(
self
,
name
:
str
)
->
Repository
:
def
repository
(
self
,
name
:
str
)
->
Repository
:
if
name
is
not
None
:
if
name
is
not
None
:
...
...
src/poetry/utils/authenticator.py
View file @
59a9fd3f
...
@@ -214,7 +214,7 @@ class Authenticator:
...
@@ -214,7 +214,7 @@ class Authenticator:
raise
e
raise
e
else
:
else
:
if
resp
.
status_code
not
in
[
502
,
503
,
504
]
or
is_last_attempt
:
if
resp
.
status_code
not
in
[
502
,
503
,
504
]
or
is_last_attempt
:
if
r
esp
.
status_code
is
not
None
and
r
aise_for_status
:
if
raise_for_status
:
resp
.
raise_for_status
()
resp
.
raise_for_status
()
return
resp
return
resp
...
...
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