Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions fixed_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
[default: https://issues.apache.org/jira/browse/].
--jira_server_url=<arg> The Jira server URL [default: https://issues.apache.org/jira].
--col_branch_width=<arg> The width of the Branches column [default: 25].
--col_github_width=<arg> The width of the Github PR column [default: 10].
--col_github_width=<arg> The width of the Github PR column [default: 12].
--col_jira_width=<arg> The width of the Jira Issue column [default: 20].
--col_type_width=<arg> The width of the Issue Type column [default: 15].
--col_priority_width=<arg> The width of the Issue Priority column [default: 10].
Expand Down Expand Up @@ -322,7 +322,7 @@ def merge(primary, secondary):
if table:
file = open('%s.txt' % outputfile ,"w")
file.write('\n.. cssclass:: table-striped table-bordered table-hover\n\n\n')
file.write(table.draw())
file.write(table.draw().decode() )
file.write('\n%s Issues listed\n\n' % len (merged) )

# output the links we referenced earlier
Expand All @@ -333,4 +333,4 @@ def merge(primary, secondary):
#print(md.draw()) # draw a markdown version of table as well
file.close()
print("Commit data output to %s.txt" % outputfile)

2 changes: 1 addition & 1 deletion lib/Table.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def __init__(self, cols=[]):
self.table = """"""
for c in cols:
if len(c) == 2:
if isinstance(c[0], basestring) and isinstance(c[1], int):
if isinstance(c[0], str) and isinstance(c[1], int):
self.titles.append(c[0])
if len(c[0]) + 2 > c[1]:
self.widths.append(len(c[0]) + 2)
Expand Down