Skip to content
Myr

Give proper attribution to pip

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Ian Cordasco · committed by Ian Cordasco · parent d615405 · Browse files · 1 file+20 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+20 added−5 removed

  • other:+20 added−5 removed

1 file+20 added−5 removed

modified:requests/packages/__init__.py+20 added-5 removed
1"""2pip._vendor is for vendoring dependencies of pip to prevent needing pip to3depend on something external.2Copyright (c) Donald Stufft, pip, and individual contributors35Files inside of pip._vendor should be considered immutable and should only be6updated to versions from upstream.4Permission is hereby granted, free of charge, to any person obtaining5a copy of this software and associated documentation files (the6"Software"), to deal in the Software without restriction, including7without limitation the rights to use, copy, modify, merge, publish,8distribute, sublicense, and/or sell copies of the Software, and to9permit persons to whom the Software is furnished to do so, subject to10the following conditions:1112The above copyright notice and this permission notice shall be13included in all copies or substantial portions of the Software.1415THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,16EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF17MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND18NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE19LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION20OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION21WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.22"""23from __future__ import absolute_import2425import sys
38 unmodified lines
64 module = sys.modules[name]65 finally:66 # Re-add any additions to sys.meta_path that were made while67 # during the import we just did, otherwise things like53 # pip._vendor.six.moves will fail.68 # requests.packages.urllib3.poolmanager will fail.69 for m in sys.meta_path:70 if m not in real_meta_path:71 real_meta_path.append(m)72
23 unmodified lines