Skip to content

Expand help doesn't work with Python 3.4 #158

@fpietka

Description

@fpietka

I'm on OSX, although it works fine when I force Python 2.7, when using 3.4 I get this stack:

Traceback (most recent call last):
  File "/Users/fpietka/work/python/tmuxp/.venv/bin/tmuxp", line 9, in <module>
    load_entry_point('tmuxp==1.0.1', 'console_scripts', 'tmuxp')()
  File "/Users/fpietka/work/python/tmuxp/tmuxp/cli.py", line 981, in main
    parser.print_help()
  File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/argparse.py", line 2352, in print_help
    self._print_message(self.format_help(), file)
  File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/argparse.py", line 2336, in format_help
    return formatter.format_help()
  File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/argparse.py", line 278, in format_help
    help = self._root_section.format_help()
  File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/argparse.py", line 208, in format_help
    func(*args)
  File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/argparse.py", line 208, in format_help
    func(*args)
  File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/argparse.py", line 515, in _format_action
    help_text = self._expand_help(action)
  File "/usr/local/Cellar/python3/3.4.2_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/argparse.py", line 602, in _expand_help
    return self._get_help_string(action) % params
TypeError: unsupported operand type(s) for %: 'tuple' and 'dict'

to reproduce I just have to call tmuxp without any argument within the virtualenv.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions