summaryrefslogtreecommitdiff
path: root/hercules/convert_server.py
diff options
context:
space:
mode:
Diffstat (limited to 'hercules/convert_server.py')
-rwxr-xr-xhercules/convert_server.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/hercules/convert_server.py b/hercules/convert_server.py
index 83e9149..f474baa 100755
--- a/hercules/convert_server.py
+++ b/hercules/convert_server.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python3
# -*- coding: utf8 -*-
#
# Copyright (C) 2014 Evol Online
@@ -10,9 +10,9 @@ from code.server.evol.main import serverEvolMain
from code.server.tmw.main import serverTmwMain
def showHelp():
- print "Usage: ./convert_server.py evol"
- print " ./convert_server.py tmwold"
- print " ./convert_server.py tmwnew"
+ print("Usage: ./convert_server.py evol")
+ print(" ./convert_server.py tmwold")
+ print(" ./convert_server.py tmwnew")
exit(1)
if len(sys.argv) != 2:
@@ -21,10 +21,10 @@ if len(sys.argv) != 2:
serverType = sys.argv[1]
if serverType == "evol":
- serverEvolMain();
+ serverEvolMain()
elif serverType == "tmwold":
- serverTmwMain(False);
+ serverTmwMain(False)
elif serverType == "tmwnew":
- serverTmwMain(True);
+ serverTmwMain(True)
else:
- print "Wrong parameter" \ No newline at end of file
+ print("Wrong parameter") \ No newline at end of file