未验证 提交 317bdf2c 编写于 作者: P Pradyun Gedam 提交者: GitHub

Merge pull request #7043 from chrahunt/refactor/smaller-convert-extras

Remove unnecessary else in convert_extras
......@@ -72,10 +72,9 @@ def _strip_extras(path):
def convert_extras(extras):
# type: (Optional[str]) -> Set[str]
if extras:
return Requirement("placeholder" + extras.lower()).extras
else:
if not extras:
return set()
return Requirement("placeholder" + extras.lower()).extras
def parse_editable(editable_req):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册