lang.py PEP8 improvements
This commit is contained in:
parent
f748395bda
commit
dc96b473cd
@ -5,6 +5,7 @@ import glob
|
|||||||
import sys
|
import sys
|
||||||
import csv
|
import csv
|
||||||
|
|
||||||
|
|
||||||
def get_lang(lang):
|
def get_lang(lang):
|
||||||
out = {}
|
out = {}
|
||||||
for ln in open('./src/lang/%s.rs' % lang, encoding='utf8'):
|
for ln in open('./src/lang/%s.rs' % lang, encoding='utf8'):
|
||||||
@ -14,6 +15,7 @@ def get_lang(lang):
|
|||||||
out[k] = v
|
out[k] = v
|
||||||
return out
|
return out
|
||||||
|
|
||||||
|
|
||||||
def line_split(line):
|
def line_split(line):
|
||||||
toks = line.split('", "')
|
toks = line.split('", "')
|
||||||
if len(toks) != 2:
|
if len(toks) != 2:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user