www
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYestin L. Harrison <yestin@ylh.io>2021-11-17 20:21:41 -0800
committerYestin L. Harrison <yestin@ylh.io>2021-11-17 20:21:41 -0800
commit1492ebc39a3bada890333f7ef47886f994f118db (patch)
tree47d93b2b1d51e384f13b66d02676531cbaba4ced
parent0714c29680e2c752252e7a531d140ce7ab56ba4b (diff)
downloadmplus_legacy-1492ebc39a3bada890333f7ef47886f994f118db.tar.gz
mplus_legacy-1492ebc39a3bada890333f7ef47886f994f118db.tar.xz
mplus_legacy-1492ebc39a3bada890333f7ef47886f994f118db.zip
scripts: 2to3 build-ttf.py, make perl happy with SVG.pm
-rw-r--r--scripts/SVG.pm2
-rw-r--r--scripts/build-ttf.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/scripts/SVG.pm b/scripts/SVG.pm
index a4bf46f..c29a078 100644
--- a/scripts/SVG.pm
+++ b/scripts/SVG.pm
@@ -123,7 +123,7 @@ sub modtime {
sub splittime {
my $this = shift;
my @stat = stat($this->{logfilename});
- if (defined @stat) {
+ if (@stat) {
return $stat[9];
} else {
return 0;
diff --git a/scripts/build-ttf.py b/scripts/build-ttf.py
index d90b0aa..eb0f13a 100644
--- a/scripts/build-ttf.py
+++ b/scripts/build-ttf.py
@@ -139,7 +139,7 @@ def set_bearings(mod):
continue
position = weights_position[weight] * 2
splitted = line.split()
- charspaces = map(int, splitted[position:position + 2])
+ charspaces = list(map(int, splitted[position:position + 2]))
break
fp.close()
else:
@@ -295,7 +295,7 @@ def set_fontnames():
('Japanese', 'Preferred Styles', weight),
('English (US)', 'Preferred Styles', weight),
]
- for k, v in config.license.items():
+ for k, v in list(config.license.items()):
sfnt_names.append((k, 'License', v))
f.sfnt_names = tuple(sfnt_names)
panose = [