#
import re, sys
-import weakref
+import warnings
from itertools import chain
import portage.exception
from portage.exception import InvalidData, InvalidAtom
pass
# Fall back to legacy code for backward compatibility.
+ warnings.warn(_("%s is deprecated, use %s instead") % \
+ ('portage.dep.get_operator()', 'portage.dep.Atom.operator'),
+ DeprecationWarning)
operator = None
if mydep:
mydep = remove_slot(mydep)
pass
# Fall back to legacy code for backward compatibility.
+ warnings.warn(_("%s is deprecated, use %s instead") % \
+ ('portage.dep.dep_getcpv()', 'portage.dep.Atom.cpv'),
+ DeprecationWarning)
mydep_orig = mydep
if mydep:
mydep = remove_slot(mydep)
pass
# Fall back to legacy code for backward compatibility.
+ warnings.warn(_("%s is deprecated, use %s instead") % \
+ ('portage.dep.dep_getkey()', 'portage.dep.Atom.cp'),
+ DeprecationWarning)
mydep = dep_getcpv(mydep)
if mydep and isspecific(mydep):
mysplit = catpkgsplit(mydep)