diff options
author | Zac Medico <zmedico@gentoo.org> | 2013-01-03 20:35:40 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2013-01-03 20:35:40 -0800 |
commit | fe1194b25031f40e51d1a82352bb7d79bcafe912 (patch) | |
tree | 99e4f1ab5f7a61e94e0d881f66113be3236d4d1d /pym/portage/dep | |
parent | 628048d69acf0fda3adcf89793b1936ab70cad0e (diff) | |
download | portage-fe1194b25031f40e51d1a82352bb7d79bcafe912.tar.gz portage-fe1194b25031f40e51d1a82352bb7d79bcafe912.tar.bz2 portage-fe1194b25031f40e51d1a82352bb7d79bcafe912.zip |
test_paren_reduce: disable deprecation warning
Diffstat (limited to 'pym/portage/dep')
-rw-r--r-- | pym/portage/dep/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage/dep/__init__.py b/pym/portage/dep/__init__.py index 916d5ea66..67383e882 100644 --- a/pym/portage/dep/__init__.py +++ b/pym/portage/dep/__init__.py @@ -255,7 +255,7 @@ def strip_empty(myarr): ('portage.dep.strip_empty',), DeprecationWarning, stacklevel=2) return [x for x in myarr if x] -def paren_reduce(mystr): +def paren_reduce(mystr, _deprecation_warn=True): """ Take a string and convert all paren enclosed entities into sublists and split the list elements by spaces. All redundant brackets are removed. @@ -269,7 +269,7 @@ def paren_reduce(mystr): @rtype: Array @return: The reduced string in an array """ - if portage._internal_caller: + if portage._internal_caller and _deprecation_warn: warnings.warn(_("%s is deprecated and will be removed without replacement.") % \ ('portage.dep.paren_reduce',), DeprecationWarning, stacklevel=2) mysplit = mystr.split() |