Commit 6312f7e2 authored by Boris Kocherov's avatar Boris Kocherov

support python3 in openoffice_tester.py

parent 5edc710c
...@@ -18,8 +18,8 @@ def main(): ...@@ -18,8 +18,8 @@ def main():
opt_list, arg_list = getopt(sys.argv[1:], "", opt_list, arg_list = getopt(sys.argv[1:], "",
["port=", "hostname=", "uno_path=", ["port=", "hostname=", "uno_path=",
"office_binary_path="]) "office_binary_path="])
except GetoptError, e: except GetoptError as e:
print >> sys.stderr, "%s \nUse --port and --hostname" % e sys.stderr.write("%s \nUse --port and --hostname" % e)
sys.exit(2) sys.exit(2)
port = hostname = uno_path = office_binary_path = None port = hostname = uno_path = office_binary_path = None
...@@ -33,7 +33,8 @@ def main(): ...@@ -33,7 +33,8 @@ def main():
elif opt == "--office_binary_path": elif opt == "--office_binary_path":
office_binary_path = arg office_binary_path = arg
print test_openoffice(hostname, port, uno_path, office_binary_path) sys.stdout.write(str(test_openoffice(hostname, port,
uno_path, office_binary_path)))
if __name__ == "__main__": if __name__ == "__main__":
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment