7f{<UdZddlZddlZddlmZmZmZmZmZddl m Z ddl m Z dZGddeZdaeed < dd eeefd eed ed edeedeeddfdZddZddddedeedeedeedeeddf dZdS)zN A module that implements tooling to enable easy warnings about deprecations. N)AnyOptionalTextIOTypeUnion)parse) __version__z DEPRECATION: ceZdZdS)PipDeprecationWarningN)__name__ __module__ __qualname__/builddir/build/BUILD/imunify360-venv-2.3.5/opt/imunify360/venv/lib/python3.11/site-packages/pip/_internal/utils/deprecation.pyr r sDrr _original_showwarningmessagecategoryfilenamelinenofilelinereturnc|tt||||||dSdSt|tr+tjd}||dSt||||||dS)Nzpip._internal.deprecations)r issubclassr logging getLoggerwarning)rrrrrrloggers r _showwarningr s  , !'8XvtT R R R R R - , H3 4 4O"#?@@wgx64NNNNNrctjdtdttjat t_dSdS)NdefaultT)append)warnings simplefilterr r showwarningr rrrinstall_warning_loggerr',sB )%:4HHHH$ ( 4+%$r) feature_flagissuereason replacementgone_inr(r)c2|duo$ttt|k}|tdf||sdndf|df||sdndf|dfg}dd |D}|rt |t j|td dS) aHelper to deprecate existing functionality. reason: Textual reason shown to the user about why this functionality has been deprecated. Should be a complete sentence. replacement: Textual suggestion shown to the user about what alternative functionality they can use. gone_in: The version of pip does this functionality should get removed in. Raises an error if pip's current version is greater than or equal to this. feature_flag: Command-line flag of the form --use-feature={feature_flag} for testing upcoming functionality. issue: Issue number on the tracker that would serve as a useful place for users to find related discussion and provide feedback. Nz{}z*pip {} will enforce this behaviour change.z*Since pip {}, this is no longer supported.zA possible replacement is {}.zEYou can use the flag --use-feature={} to test the upcoming behaviour.z@Discussion can be found at https://github.com/pypa/pip/issues/{} c3NK|] \}}|| ||V!dS)N)format).0value format_strs r zdeprecated..rsK E:  !e&7 %  &7&7&7&7r)r stacklevel)rcurrent_versionDEPRECATION_MSG_PREFIXjoinr r$warn)r*r+r,r(r)is_gone message_partsrs r deprecatedr=7s:T!NeO&<&<g&NG *0001 B<<A    + WW    N -M8hh!.G-#G,,, M'$9aHHHHHHr)NN)rN)__doc__rr$typingrrrrrpip._vendor.packaging.versionrpipr r7r8Warningr r__annotations__strintr r'r=rrrrFs55555555555555//////......(     G   "s!!!" OO 7C< O7mOO  O 6  O 3- O OOOO(,,,, #' EIEIEI EI#EIc] EI 3- EI C= EI EIEIEIEIEIEIr