import logging
import re
import sys
-import warnings
try:
from configparser import SafeConfigParser, ParsingError
self.already_in_regenerate = 0
- def get_virts_p(self, myroot=None):
-
- if myroot is not None:
- warnings.warn("The 'myroot' parameter for " + \
- "portage.config.get_virts_p() is deprecated",
- DeprecationWarning, stacklevel=2)
-
+ def get_virts_p(self):
if self.virts_p:
return self.virts_p
virts = self.getvirtuals()
self.virts_p[vkeysplit[1]] = virts[x]
return self.virts_p
- def getvirtuals(self, myroot=None):
- """myroot is now ignored because, due to caching, it has always been
- broken for all but the first call."""
-
- if myroot is not None:
- warnings.warn("The 'myroot' parameter for " + \
- "portage.config.getvirtuals() is deprecated",
- DeprecationWarning, stacklevel=2)
-
+ def getvirtuals(self):
myroot = self["ROOT"]
if self.virtuals:
return self.virtuals
raise KeyError(key)
return v
- def has_key(self,mykey):
- warnings.warn("portage.config.has_key() is deprecated, "
- "use the in operator instead",
- DeprecationWarning, stacklevel=2)
- return mykey in self
-
def __contains__(self, mykey):
"""Called to implement membership test operators (in and not in)."""
for d in self.lookuplist: