dreamhost/cliff — pull request #9 by heavenshell (2012-05-08 13:01:17+00:00)
Title: Enable to run in Python2.6

Hi, thank you for nice library!

Currently, `cliff` does not work in `Python2.6`.

When I ran `cliffdemo`, I've got an exception.

```
$ cliffdemo --version
Traceback (most recent call last):
File "/tmp/virtualenvs/cliff/bin/cliffdemo", line 9, in
load_entry_point('cliffdemo==0.1', 'console_scripts', 'cliffdemo')()
File "/Volumes/Data/platform/github/python/cliff/demoapp/cliffdemo/main.py", line 32, in main
myapp = DemoApp()
File "/tmp/cliff/demoapp/cliffdemo/main.py", line 16, in __init__
command_manager=CommandManager('cliff.demo'),
File "/tmp/virtualenvs/cliff/lib/python2.6/site-packages/cliff-0.5.1-py2.6.egg/cliff/app.py", line 52, in __init__
self.parser = self.build_option_parser(description, version)
File "/tmp/virtualenvs/cliff/lib/python2.6/site-packages/cliff-0.5.1-py2.6.egg/cliff/app.py", line 73, in build_option_parser
version='%(prog)s {}'.format(version),
ValueError: zero length field name in format
```

The Python version of Redhat based distribution, e.g. CentOS6, SL6, is currently `Python2.6` as default.

This pull request enable to run in `Python2.6`.

Please check and include.

Regards,