summaryrefslogtreecommitdiff
path: root/pkg_resources
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-05-03 12:35:19 -0400
committerJason R. Coombs <jaraco@jaraco.com>2015-05-03 12:35:19 -0400
commite55483f33a61c302461ed480a3556d746b8aba40 (patch)
treead5108ccfcc279a3f7380f3d1e335e8e044f6e7a /pkg_resources
parent95a68afdf62f63e044f600ab87a4410db6bdf128 (diff)
downloadpython-setuptools-git-e55483f33a61c302461ed480a3556d746b8aba40.tar.gz
Extract variable for clarity.
Diffstat (limited to 'pkg_resources')
-rw-r--r--pkg_resources/__init__.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/pkg_resources/__init__.py b/pkg_resources/__init__.py
index 4ed71329..779bd367 100644
--- a/pkg_resources/__init__.py
+++ b/pkg_resources/__init__.py
@@ -2876,9 +2876,8 @@ def parse_requirements(strs):
line = next(lines)
p = 0
except StopIteration:
- raise RequirementParseError(
- "\\ must not appear on the last nonblank line"
- )
+ msg = "\\ must not appear on the last nonblank line"
+ raise RequirementParseError(msg)
match = ITEM(line, p)
if not match: