diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-12-06 14:37:30 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-12-06 14:37:30 +0000 |
commit | 490532704fde7a58165cd9cd96f088319b145b59 (patch) | |
tree | 4873a4b5caa26e7c32a2af8cf8616f0d3441e420 /dev-python/logilab-common/files | |
parent | Delete older ebuild. (diff) | |
download | gentoo-2-490532704fde7a58165cd9cd96f088319b145b59.tar.gz gentoo-2-490532704fde7a58165cd9cd96f088319b145b59.tar.bz2 gentoo-2-490532704fde7a58165cd9cd96f088319b145b59.zip |
Version bump.
(Portage version: 2.2.0_alpha7_p1/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/logilab-common/files')
-rw-r--r-- | dev-python/logilab-common/files/logilab-common-0.53.0-fix_indentation.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/dev-python/logilab-common/files/logilab-common-0.53.0-fix_indentation.patch b/dev-python/logilab-common/files/logilab-common-0.53.0-fix_indentation.patch new file mode 100644 index 000000000000..dfb7337f14f9 --- /dev/null +++ b/dev-python/logilab-common/files/logilab-common-0.53.0-fix_indentation.patch @@ -0,0 +1,40 @@ +http://hg.logilab.org/logilab/common/rev/2029eb2dd071 + +--- optparser.py ++++ optparser.py +@@ -46,11 +46,11 @@ + self.min_args, self.max_args = 0, 1 + + def add_command(self, name, mod_or_funcs, help=''): +- """name of the command +- name of module or tuple of functions (run, add_options) +- """ ++ """name of the command, name of module or tuple of functions ++ (run, add_options) ++ """ + assert isinstance(mod_or_funcs, str) or isinstance(mod_or_funcs, tuple), \ +- "mod_or_funcs has to be a module name or a tuple of functions" ++ "mod_or_funcs has to be a module name or a tuple of functions" + self._commands[name] = (mod_or_funcs, help) + + def print_main_help(self): +@@ -64,7 +64,7 @@ + self.print_main_help() + sys.exit(1) + cmd = args[0] +- args = args[1:] ++ args = args[1:] + if cmd not in self._commands: + if cmd in ('-h', '--help'): + self.print_main_help() +@@ -79,8 +79,8 @@ + self.description = help + if isinstance(mod_or_f, str): + exec 'from %s import run, add_options' % mod_or_f +- else: +- run, add_options = mod_or_f ++ else: ++ run, add_options = mod_or_f + add_options(self) + (options, args) = self.parse_args(args) + if not (self.min_args <= len(args) <= self.max_args): |