Skip to content

Commit

Permalink
Auto Concatenate strings
Browse files Browse the repository at this point in the history
  • Loading branch information
pradyunsg committed Aug 6, 2017
1 parent a617339 commit 7b4321f
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions pip/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,30 +129,30 @@ class VcsHashUnsupported(HashError):
we don't have a method for hashing those."""

order = 0
head = ("Can't verify hashes for these requirements because we don't "
"have a way to hash version control repositories:")
head = "Can't verify hashes for these requirements because we don't "
"have a way to hash version control repositories:"


class DirectoryUrlHashUnsupported(HashError):
"""A hash was provided for a version-control-system-based requirement, but
we don't have a method for hashing those."""

order = 1
head = ("Can't verify hashes for these file:// requirements because they "
"point to directories:")
head = "Can't verify hashes for these file:// requirements because they "
"point to directories:"


class HashMissing(HashError):
"""A hash was needed for a requirement but is absent."""

order = 2
head = ('Hashes are required in --require-hashes mode, but they are '
'missing from some requirements. Here is a list of those '
'requirements along with the hashes their downloaded archives '
'actually had. Add lines like these to your requirements files to '
'prevent tampering. (If you did not enable --require-hashes '
'manually, note that it turns on automatically when any package '
'has a hash.)')
head = 'Hashes are required in --require-hashes mode, but they are '
'missing from some requirements. Here is a list of those '
'requirements along with the hashes their downloaded archives '
'actually had. Add lines like these to your requirements files to '
'prevent tampering. (If you did not enable --require-hashes '
'manually, note that it turns on automatically when any package '
'has a hash.)'

def __init__(self, gotten_hash):
"""
Expand Down Expand Up @@ -183,8 +183,8 @@ class HashUnpinned(HashError):
version."""

order = 3
head = ('In --require-hashes mode, all requirements must have their '
'versions pinned with ==. These do not:')
head = 'In --require-hashes mode, all requirements must have their '
'versions pinned with ==. These do not:'


class HashMismatch(HashError):
Expand All @@ -197,10 +197,10 @@ class HashMismatch(HashError):
"""
order = 4
head = ('THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS '
'FILE. If you have updated the package versions, please update '
'the hashes. Otherwise, examine the package contents carefully; '
'someone may have tampered with them.')
head = 'THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS '
'FILE. If you have updated the package versions, please update '
'the hashes. Otherwise, examine the package contents carefully; '
'someone may have tampered with them.'

def __init__(self, allowed, gots):
"""
Expand Down

0 comments on commit 7b4321f

Please sign in to comment.