We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b2a6bc commit ddc5f00Copy full SHA for ddc5f00
getsploit.py
@@ -796,7 +796,12 @@ def main():
796
maxWidth = max(len(element[2]) for element in tableRows)
797
outputTable.set_cols_width([20, 30, maxWidth])
798
outputTable.add_rows(tableRows)
799
- print(outputTable.draw())
+ if pythonVersion < 3.0:
800
+ # Just pass non-ascii
801
+ print(outputTable.draw().decode('ascii', 'ignore'))
802
+ else:
803
+ # Any better solution here?
804
+ print(outputTable.draw().encode('ascii', 'ignore').decode())
805
806
if __name__ == '__main__':
807
main()
0 commit comments