Skip to content

Commit

Permalink
fix: remove Python 2 compat in qltui
Browse files Browse the repository at this point in the history
  • Loading branch information
mochaaP authored and elicn committed Feb 9, 2024
1 parent 89123fd commit 7e7655e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 4 additions & 1 deletion qltool
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def handle_examples(parser: argparse.ArgumentParser):
parser.exit(0, __ql_examples)


if __name__ == '__main__':
def run():
parser = argparse.ArgumentParser()
parser.add_argument('--version', action='version', version=f'qltool for Qiling {ql_ver}, using Unicorn {uc_ver}')

Expand Down Expand Up @@ -319,3 +319,6 @@ if __name__ == '__main__':
pprint(rep)

exit(ql.os.exit_code)

if __name__ == '__main__':
run()
5 changes: 2 additions & 3 deletions qltui.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import ast
import pickle
import re
import six
import argparse
import json

Expand Down Expand Up @@ -131,13 +130,13 @@ def log(string, color):
"""
Function to beautify terminal output
"""
six.print_(colored(string, color))
print(colored(string, color))
else:
def log(string, color):
"""
Function to beautify terminal output
"""
six.print_(string)
print(string)


class IntValidator(Validator):
Expand Down

0 comments on commit 7e7655e

Please sign in to comment.