Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2894)

Issue 581800043: Fix translation-status.py with Python 3 (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
4 years, 1 month ago by hahnjo
Modified:
3 years, 12 months ago
Reviewers:
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

Fix translation-status.py with Python 3 Individual commits: 1) translations-status: Use str.maketrans() It's now a static function of the builtin type str, not in the string module. It wasn't marked as deprecated in Python 2... 2) translations-status: Call locals() outside of list comprehension Otherwise Python 3 throws KeyErrors because it's not getting the local variables from the function (in particular p). 3) translations-status: Correctly reference self.filename

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -9 lines) Patch
M scripts/auxiliar/translations-status.py View 8 chunks +11 lines, -9 lines 0 comments Download

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b