diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-06-23 19:10:12 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-06-23 19:10:12 +0000 |
commit | 31b343fb0130b34ef69cd695c48b7f02f3a9148b (patch) | |
tree | fc0354fe367fa9a8ea9426ac4a430c33c7a1eaf9 | |
parent | d00f9c88bc5ccd132d8bd8ee858dad2ac8aab8df (diff) | |
download | portage-31b343fb0130b34ef69cd695c48b7f02f3a9148b.tar.gz portage-31b343fb0130b34ef69cd695c48b7f02f3a9148b.tar.bz2 portage-31b343fb0130b34ef69cd695c48b7f02f3a9148b.zip |
Make the global "actions" variable a local inside parse_opts() since the
name collision with the _emerge.actions module triggers this traceback with
epydoc-3.0.1:
Traceback (most recent call last):
File "/usr/bin/epydoc", line 13, in <module>
cli()
File "/usr/lib/python2.6/site-packages/epydoc/cli.py", line 965, in cli
main(options, names)
File "/usr/lib/python2.6/site-packages/epydoc/cli.py", line 757, in main
exclude_parse=exclude_parse)
File "/usr/lib/python2.6/site-packages/epydoc/docbuilder.py", line 235, in build_doc_index
docindex = DocIndex(docs)
File "/usr/lib/python2.6/site-packages/epydoc/apidoc.py", line 1715, in __init__
raise ValueError("All APIdocs passed to DocIndexer "
ValueError: All APIdocs passed to DocIndexer must already have canonical names.
svn path=/main/trunk/; revision=13674
-rw-r--r-- | pym/_emerge/__init__.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 622c1c6e1..80b08bcc9 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -45,13 +45,6 @@ from _emerge._flush_elog_mod_echo import _flush_elog_mod_echo from _emerge.is_valid_package_atom import is_valid_package_atom from _emerge.stdout_spinner import stdout_spinner - -actions = frozenset([ -"clean", "config", "depclean", -"info", "list-sets", "metadata", -"prune", "regen", "search", -"sync", "unmerge", "version", -]) options=[ "--ask", "--alphabetical", "--buildpkg", "--buildpkgonly", @@ -443,7 +436,14 @@ def parse_opts(tmpcmdline, silent=False): myopts = {} myfiles=[] - global actions, options, shortmapping + global options, shortmapping + + actions = frozenset([ + "clean", "config", "depclean", + "info", "list-sets", "metadata", + "prune", "regen", "search", + "sync", "unmerge", "version", + ]) longopt_aliases = {"--cols":"--columns", "--skip-first":"--skipfirst"} argument_options = { |