python 3.2 does not have a unicode type so ignore the error if it is missing
This commit is contained in:
@@ -11,9 +11,12 @@ class TableFormatter(ListFormatter, SingleFormatter):
|
||||
ALIGNMENTS = {
|
||||
int: 'r',
|
||||
str: 'l',
|
||||
unicode: 'l',
|
||||
float: 'r',
|
||||
}
|
||||
try:
|
||||
ALIGNMENTS[unicode] = 'l'
|
||||
except NameError:
|
||||
pass
|
||||
|
||||
def add_argument_group(self, parser):
|
||||
group = parser.add_argument_group(
|
||||
|
||||
Reference in New Issue
Block a user