diff options
author | jak1 <jak1@themanaworld.org> | 2022-06-18 21:53:49 +0200 |
---|---|---|
committer | jak1 <jak1@themanaworld.org> | 2022-06-18 21:53:49 +0200 |
commit | c7f7f678028c969b8b466c4a3c8f5e5f4e69cf4b (patch) | |
tree | 80059e7b60c63ef29d4fe7fdc5c19f4d4d34ff73 | |
parent | b3cd9a5dd68c8a973795931149a254563bda2865 (diff) | |
download | messworld-tools-c7f7f678028c969b8b466c4a3c8f5e5f4e69cf4b.tar.gz messworld-tools-c7f7f678028c969b8b466c4a3c8f5e5f4e69cf4b.tar.bz2 messworld-tools-c7f7f678028c969b8b466c4a3c8f5e5f4e69cf4b.tar.xz messworld-tools-c7f7f678028c969b8b466c4a3c8f5e5f4e69cf4b.zip |
updated ./client/* scripts to use python3
-rwxr-xr-x | client/dailylogin.py | 2 | ||||
-rwxr-xr-x | client/minimap-dyecmd.py | 2 | ||||
-rwxr-xr-x | client/minimap-render.py | 2 | ||||
-rwxr-xr-x | client/weapons.py | 9 |
4 files changed, 8 insertions, 7 deletions
diff --git a/client/dailylogin.py b/client/dailylogin.py index fc9296f..221ac49 100755 --- a/client/dailylogin.py +++ b/client/dailylogin.py @@ -1,4 +1,4 @@ -#!/usr/bin/python2.7 +#!/usr/bin/env python3 # Setup x=y=0 diff --git a/client/minimap-dyecmd.py b/client/minimap-dyecmd.py index 8f3e0c7..28c35ee 100755 --- a/client/minimap-dyecmd.py +++ b/client/minimap-dyecmd.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 #-*- coding:utf-8 -*- import os diff --git a/client/minimap-render.py b/client/minimap-render.py index 716e9e3..7d11b42 100755 --- a/client/minimap-render.py +++ b/client/minimap-render.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 #-*- coding:utf-8 -*- import sys diff --git a/client/weapons.py b/client/weapons.py index 8b4d663..2f689a6 100755 --- a/client/weapons.py +++ b/client/weapons.py @@ -1,4 +1,5 @@ -#!/usr/bin/python2.7 +#!/usr/bin/env python3 + import copy TYPE_NUL=0 TYPE_WPN=1 @@ -30,7 +31,7 @@ def main(a, typ=TYPE_NUL): try: rid=int(gid) except: - print "[CRITICAL] Invalid item ID format: " + l + print("[CRITICAL] Invalid item ID format: " + l) exit(1) ctx=Item(rid, typ) @@ -40,7 +41,7 @@ def main(a, typ=TYPE_NUL): try: ctx.lvl=int(gid) except: - print "[CRITICAL] Invalid item level format: " + l + print("[CRITICAL] Invalid item level format: " + l) ctx.lvl=0 if "\tattack-range=" in l or " attack-range=" in l: @@ -51,7 +52,7 @@ def main(a, typ=TYPE_NUL): else: ctx.type=TYPE_WPN except: - print "[CRITICAL] Invalid item range format: " + l + print("[CRITICAL] Invalid item range format: " + l) ctx.type=TYPE_NUL ctx.lvl=0+rid |