diff options
author | jak1 <jak1@themanaworld.org> | 2022-06-19 09:34:16 +0200 |
---|---|---|
committer | jak1 <jak1@themanaworld.org> | 2022-06-19 09:34:16 +0200 |
commit | 38fcd221d8fe03208abdafe0f01a6e54a601b71a (patch) | |
tree | 6a1ba5a5943b9dc0617e0046b39b82ba2284d53e /hercules/list_mapcache.py | |
parent | 9a351fb1abd5694bbbb7e38fcb64bb30b3fa74bb (diff) | |
download | tools-38fcd221d8fe03208abdafe0f01a6e54a601b71a.tar.gz tools-38fcd221d8fe03208abdafe0f01a6e54a601b71a.tar.bz2 tools-38fcd221d8fe03208abdafe0f01a6e54a601b71a.tar.xz tools-38fcd221d8fe03208abdafe0f01a6e54a601b71a.zip |
updated all leftover scripts to py3
Diffstat (limited to 'hercules/list_mapcache.py')
-rwxr-xr-x | hercules/list_mapcache.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hercules/list_mapcache.py b/hercules/list_mapcache.py index 2a83f53..5288d95 100755 --- a/hercules/list_mapcache.py +++ b/hercules/list_mapcache.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf8 -*- # # Copyright (C) 2014 Evol Online @@ -13,10 +13,10 @@ def runFunction(path): with open(path, "rb") as f: size = readInt32(f) if os.path.getsize(path) != size: - print "Map cache corrupted, wrong file size." + print("Map cache corrupted, wrong file size.") exit(1) mapsCount = readInt16(f) - print "Maps count: " + str(mapsCount) + print("Maps count: " + str(mapsCount)) readInt16(f) # padding listMapCache(f, mapsCount) |