summaryrefslogtreecommitdiffstats
path: root/pym/portage/proxy
Commit message (Collapse)AuthorAgeFilesLines
* emerge: lazy imports, optimize --helpZac Medico2012-10-141-2/+2
|
* ObjectProxy: implement __enter__ and __exit__Zac Medico2012-09-091-1/+8
|
* Raise ValueError if fromlist contains an extra comma.Zac Medico2010-08-191-0/+3
|
* Fix lazyimport() to handle partially imported modules by creatingZac Medico2010-08-121-1/+5
| | | | proxies, instead of raising ImportError.
* Add a sanity check in _preload_portage_submodules() to ensure that theZac Medico2010-08-041-0/+4
| | | | loop always terminates.
* Fix infinite loop in _preload_portage_submodules().Zac Medico2010-08-031-0/+1
|
* Fix typo in docstring.Zac Medico2010-08-031-1/+1
|
* Bug #330645 - Make _unregister_module_proxy() detect partially importedZac Medico2010-08-031-12/+17
| | | | | modules (indicated when an AttributeError is caught) and handle them appropriately.
* Implement __unicode__ for python2.Zac Medico2010-03-271-0/+3
|
* Remove all svn $Id keywords.Zac Medico2010-03-243-3/+0
|
* When portage upgrades or downgrades itself, preload lazily referenced portageZac Medico2010-03-091-0/+18
| | | | | | submodules into memory so that imports won't fail later. svn path=/main/trunk/; revision=15778
* Add ObjectProxy __gt__, __ge__, __lt__, and __le__ methods to fix TypeErrorZac Medico2010-02-281-0/+12
| | | | | | | | | | with python3 reported by Arfrever: File "/usr/lib/portage/pym/portage/__init__.py", line 513, in portageexit if secpass > 1 and os.environ.get("SANDBOX_ON") != "1": TypeError: unorderable types: _LazyImportFrom() > int() svn path=/main/trunk/; revision=15497
* Define portage.proxy.objectproxy.ObjectProxy.__add__() to fix problem with ↵Arfrever Frehtes Taifersar Arahesis2009-11-051-0/+3
| | | | | | string concatenation reported by dol-sen. svn path=/main/trunk/; revision=14778
* Remove ugly code from __len__, since defining __bool__ fixes the sameZac Medico2009-09-251-9/+1
| | | | | | issue. svn path=/main/trunk/; revision=14428
* Define __bool__() for compatibility with Python 3.Arfrever Frehtes Taifersar Arahesis2009-09-251-1/+6
| | | | svn path=/main/trunk/; revision=14427
* For python 3.x with boolean target, len() results in TypeError, soZac Medico2009-09-221-1/+9
| | | | | | make __len__ return 0 or 1 in this case. svn path=/main/trunk/; revision=14377
* Use dict.(keys|values|items)() instead of ↵Arfrever Frehtes Taifersar Arahesis2009-09-211-1/+1
| | | | | | | | dict.(iterkeys|itervalues|iteritems)() for compatibility with Python 3. (2to3-3.1 -f dict -nw ${FILES}) svn path=/main/trunk/; revision=14327
* Use range() instead of xrange() for compatibility with Python 3.Arfrever Frehtes Taifersar Arahesis2009-09-211-1/+1
| | | | | | (2to3-3.1 -f xrange -nw ${FILES}) svn path=/main/trunk/; revision=14317
* Define basestring as str when Python 3 is used.Arfrever Frehtes Taifersar Arahesis2009-09-211-0/+3
| | | | svn path=/main/trunk/; revision=14316
* Implement ObjectProxy.__int__().Zac Medico2009-08-121-0/+3
| | | | svn path=/main/trunk/; revision=14006
* Use a lock to ensure that threaded code doesn't cause problems with proxyZac Medico2009-02-221-15/+36
| | | | | | registration and unregistration. svn path=/main/trunk/; revision=12683
* Fix _LazyImportFrom to use the correct module name when registering andZac Medico2009-02-221-11/+14
| | | | | | unregistering. svn path=/main/trunk/; revision=12679
* Make lazyimport proxies trigger automatic destruction of other proxies forZac Medico2009-02-221-0/+33
| | | | | | | modules that have been imported. This way, destruction of a single proxy can trigger destruction of all the rest. svn path=/main/trunk/; revision=12678
* Fix typo in __all__.Zac Medico2009-02-221-1/+1
| | | | svn path=/main/trunk/; revision=12677
* Reduce bloat in portage.util by splitting ObjectProxy and lazyimport into aZac Medico2009-02-223-0/+187
new portage.proxy package. svn path=/main/trunk/; revision=12676