Revision a517ff50 kamaki/cli/argument.py
b/kamaki/cli/argument.py | ||
---|---|---|
83 | 83 |
if isinstance(newname, list) or isinstance(newname, tuple): |
84 | 84 |
self._parsed_name += list(newname) |
85 | 85 |
else: |
86 |
self._parsed_name.append(unicode(newname))
|
|
86 |
self._parsed_name.append('%s' % newname)
|
|
87 | 87 |
|
88 | 88 |
@property |
89 | 89 |
def help(self): |
... | ... | |
92 | 92 |
|
93 | 93 |
@help.setter |
94 | 94 |
def help(self, newhelp): |
95 |
self._help = unicode(newhelp)
|
|
95 |
self._help = '%s' % newhelp
|
|
96 | 96 |
|
97 | 97 |
@property |
98 | 98 |
def arity(self): |
... | ... | |
189 | 189 |
if options == self.default: |
190 | 190 |
return |
191 | 191 |
if not isinstance(options, list): |
192 |
options = [unicode(options)]
|
|
192 |
options = ['%s' % options]
|
|
193 | 193 |
for option in options: |
194 | 194 |
keypath, sep, val = option.partition('=') |
195 | 195 |
if not sep: |
Also available in: Unified diff