aboutsummaryrefslogtreecommitdiff
path: root/src/gperf_fold_key_conv.py
diff options
context:
space:
mode:
authorK.Kosako <kkosako0@gmail.com>2023-08-21 15:21:55 +0900
committerK.Kosako <kkosako0@gmail.com>2023-08-21 15:21:55 +0900
commit276d83c5dd1e6cae7db42aae87d8deeb63fcb639 (patch)
treed63d85fb43c0b13720afb271b817c40b30a89432 /src/gperf_fold_key_conv.py
parente7e97ca3345561d6d9ed2ea0bd0b0da2b5bf24e0 (diff)
downloadoniguruma-276d83c5dd1e6cae7db42aae87d8deeb63fcb639.zip
oniguruma-276d83c5dd1e6cae7db42aae87d8deeb63fcb639.tar.gz
oniguruma-276d83c5dd1e6cae7db42aae87d8deeb63fcb639.tar.bz2
migration from python2 to python3
Diffstat (limited to 'src/gperf_fold_key_conv.py')
-rwxr-xr-xsrc/gperf_fold_key_conv.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gperf_fold_key_conv.py b/src/gperf_fold_key_conv.py
index c633100..d943c3e 100755
--- a/src/gperf_fold_key_conv.py
+++ b/src/gperf_fold_key_conv.py
@@ -1,7 +1,7 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# gperf_fold_key_conv.py
-# Copyright (c) 2016-2018 K.Kosako
+# Copyright (c) 2016-2023 K.Kosako
import sys
import re
@@ -52,7 +52,7 @@ def parse_line(s, key_len):
return s
def parse_file(f, key_len):
- print "/* This file was converted by gperf_fold_key_conv.py\n from gperf output file. */"
+ print("/* This file was converted by gperf_fold_key_conv.py\n from gperf output file. */")
while True:
line = f.readline()
@@ -60,7 +60,7 @@ def parse_file(f, key_len):
break
s = parse_line(line, key_len)
- print s
+ print(s)
# main