Remove obsolete InvalidAtom handler in _add_pkg_dep_string().
authorZac Medico <zmedico@gentoo.org>
Sat, 19 Sep 2009 20:10:56 +0000 (20:10 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 19 Sep 2009 20:10:56 +0000 (20:10 -0000)
svn path=/main/trunk/; revision=14283

pym/_emerge/depgraph.py
pym/portage/__init__.py

index 5b03dc3a22250f553283910f78aded4c6ecff0ef..e4affdf37f122d0a522d8185438398e093962685 100644 (file)
@@ -1148,23 +1148,16 @@ class depgraph(object):
                vardb = self._frozen_config.roots[dep_root].trees["vartree"].dbapi
 
                for atom in selected_atoms[pkg]:
-                       try:
-                               mypriority = dep_priority.copy()
-                               if not atom.blocker and vardb.match(atom):
-                                       mypriority.satisfied = True
 
-                               if not self._add_dep(Dependency(atom=atom,
-                                       blocker=atom.blocker, depth=depth, parent=pkg,
-                                       priority=mypriority, root=dep_root),
-                                       allow_unsatisfied=allow_unsatisfied):
-                                       return 0
+                       mypriority = dep_priority.copy()
+                       if not atom.blocker and vardb.match(atom):
+                               mypriority.satisfied = True
 
-                       except portage.exception.InvalidAtom, e:
-                               show_invalid_depstring_notice(
-                                       pkg, dep_string, str(e))
-                               del e
-                               if not pkg.installed:
-                                       return 0
+                       if not self._add_dep(Dependency(atom=atom,
+                               blocker=atom.blocker, depth=depth, parent=pkg,
+                               priority=mypriority, root=dep_root),
+                               allow_unsatisfied=allow_unsatisfied):
+                               return 0
 
                selected_atoms.pop(pkg)
 
index 3ea8b3b72872fd40ec363b050d70b1ba3ce9fd17..e84165041471ef632fc572dce8ac26a234259858 100644 (file)
@@ -213,10 +213,10 @@ class _unicode_module_wrapper(object):
                object.__setattr__(self, '_encoding', encoding)
                object.__setattr__(self, '_overrides', overrides)
 
-       def __getattribute__(self, attr):
-               result = getattr(object.__getattribute__(self, '_mod'), attr)
-               encoding = object.__getattribute__(self, '_encoding')
-               overrides = object.__getattribute__(self, '_overrides')
+       def __getattr__(self, attr):
+               result = getattr(self._mod, attr)
+               encoding = self._encoding
+               overrides = self._overrides
                override = None
                if overrides is not None:
                        override = overrides.get(id(result))