summaryrefslogtreecommitdiff
path: root/src/gperf_fold_key_conv.py
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2023-12-19 08:12:44 +0100
committerJörg Frings-Fürst <debian@jff.email>2023-12-19 08:12:44 +0100
commit7547c5a1405dff1aac1ab054a24907b3ae724c12 (patch)
tree4ca475fcd4511e8cd245ce31349f4efb56089aaf /src/gperf_fold_key_conv.py
parent9d10df3f441724d605cd8729c8e8d3ba1ad816f4 (diff)
parente87df9b5e9eea77d2155767952c996f91b5eebfc (diff)
Merge branch 'release/debian/6.9.9-1'HEADdebian/6.9.9-1master
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