From c7f7f678028c969b8b466c4a3c8f5e5f4e69cf4b Mon Sep 17 00:00:00 2001 From: jak1 Date: Sat, 18 Jun 2022 21:53:49 +0200 Subject: updated ./client/* scripts to use python3 --- client/dailylogin.py | 2 +- client/minimap-dyecmd.py | 2 +- client/minimap-render.py | 2 +- 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 -- cgit v1.2.3-70-g09d2