Skip to content

Commit e1a4c4e

Browse files
committed
Fix typo
1 parent bc65cae commit e1a4c4e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pip/req/req_file.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@
5454
_req_parser.add_option(cmdoptions.global_options.make())
5555
_req_parser.disable_interspersed_args()
5656

57-
# By default optparse sys.exits on error occurs. We want to wrap that
58-
# in our own exception.
57+
# By default optparse sys.exits on parsing errors. We want to wrap
58+
# that in our own exception.
5959
def parser_exit(self, msg):
6060
raise RequirementsFileParseError(msg)
6161
_req_parser.exit = parser_exit
@@ -188,7 +188,7 @@ def parse_content(filename, content, finder=None, comes_from=None, options=None,
188188

189189
def parse_line(line):
190190
if not line.startswith('-'):
191-
# Split the requirements from the options.
191+
# Split the requirement from the options.
192192
if ' --' in line:
193193
req, opts = line.split(' --', 1)
194194
opts = parse_requirement_options('--%s' % opts)

0 commit comments

Comments
 (0)