提交 21538bc2 编写于 作者: I Ian Bicking

[svn r21388] fix problem with urls in requirement files, and some blank lines in requirement files

上级 909f3cdb
......@@ -16,6 +16,9 @@ svn trunk
* Download links that include embedded spaces or other unsafe
characters (those characters get %-encoded).
* Fixed use of URLs in requirement files, and problems with some blank
lines.
* Turn some tar file errors into warnings.
0.2
......
......@@ -425,7 +425,7 @@ class FreezeCommand(Command):
if requirement:
req_f = open(requirement)
for line in req_f:
if not line or line.strip().startswith('#'):
if not line.strip() or line.strip().startswith('#'):
f.write(line)
continue
elif line.startswith('-e') or line.startswith('--editable'):
......@@ -2522,7 +2522,7 @@ def parse_requirements(filename, finder, comes_from=None):
req = InstallRequirement.from_editable(
line, comes_from)
else:
req = InstallRequirement(line, comes_from)
req = InstallRequirement.from_line(line, comes_from)
yield req
############################################################
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册