Skip to content

Commit 6818011

Browse files
author
Tomaz Solc
committed
Missing commas in tuples.
1 parent fbd5422 commit 6818011

181 files changed

Lines changed: 46044 additions & 46040 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

perl2python.pl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ sub python_escape {
1818
return $x;
1919
}
2020

21+
# print "$input\n";
22+
2123
push(@INC, $input);
2224

2325
my $n;
@@ -27,12 +29,14 @@ sub python_escape {
2729

2830
next unless( $#{$Text::Unidecode::Char[$n]} >= 0 );
2931

32+
# print "$n\n";
33+
3034
open(PYTHON, sprintf(">%s/x%02x.py", $output, $n));
3135
print PYTHON "data = (\n";
3236

3337
my $m = 0;
3438
for my $t (@{$Text::Unidecode::Char[$n]}) {
35-
print PYTHON "'", &python_escape($t), "' # ";
39+
print PYTHON "'", &python_escape($t), "', # ";
3640
printf PYTHON "0x%02x\n", $m;
3741
$m++;
3842
}

0 commit comments

Comments
 (0)