diff -urp fbpanel-7.0.py2/.config/options.py fbpanel-7.0.py3/.config/options.py
--- fbpanel-7.0.py2/.config/options.py 2015-12-05 15:34:19.000000000 +0900
+++ fbpanel-7.0.py3/.config/options.py 2021-02-23 15:52:21.656374358 +0900
@@ -96,5 +96,5 @@ def report():
str += "yes\n"
else:
str += "no\n"
- print str,
+ print (str)
diff -urp fbpanel-7.0.py2/.config/repl.py fbpanel-7.0.py3/.config/repl.py
--- fbpanel-7.0.py2/.config/repl.py 2021-02-23 19:32:11.594999903 +0900
+++ fbpanel-7.0.py3/.config/repl.py 2021-02-23 19:39:24.314621742 +0900
@@ -14,5 +14,5 @@ def repl_func(matchobj):
return matchobj.group(0)
-print re.sub('@\w+@', repl_func, sys.stdin.read())
+print (re.sub('@\w+@', repl_func, sys.stdin.read()))
diff -urp fbpanel-7.0.py2/configure fbpanel-7.0.py3/configure
--- fbpanel-7.0.py2/configure 2021-02-23 19:32:11.595999894 +0900
+++ fbpanel-7.0.py3/configure 2021-02-23 15:57:43.341359196 +0900
@@ -330,7 +330,11 @@ def write_config():
v = int(v)
smake += "%s := %s\n" % (name.upper(), str(v))
- if type(v) == str or type(v) == unicode:
+ if sys.version_info < (3, 0):
+ unicode_type = unicode
+ else:
+ unicode_type = str
+ if type(v) == str or type(v) == unicode_type:
v = '"' + v + '"'
sc += '#define %s %s\n' % (name.upper(), str(v))
smake += "\n"
@@ -498,5 +502,5 @@ if __name__ == "__main__":
exec(code)
except:
x.info("Can't read .config/options.py")
- pass
+ raise
main()