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 /client/weapons.py | |
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
Diffstat (limited to 'client/weapons.py')
-rwxr-xr-x | client/weapons.py | 9 |
1 files changed, 5 insertions, 4 deletions
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 |