Svngoku commited on
Commit
468fa7e
1 Parent(s): 658b2d4

Try to make it work

Browse files
Files changed (1) hide show
  1. flores200_codes.py +4 -11
flores200_codes.py CHANGED
@@ -44,15 +44,8 @@ Yoruba yor_Latn
44
  Zulu zul_Latn'''
45
 
46
  codes_as_string = codes_as_string.split('\n')
47
- flores_codes = {}
48
-
49
- try:
50
- for code in codes_as_string:
51
- lang, lang_code = code.split('\t')
52
- flores_codes[lang] = lang_code
53
- except ValueError:
54
- lang = None
55
- lang_code = None
56
-
57
-
58
 
 
 
 
 
 
44
  Zulu zul_Latn'''
45
 
46
  codes_as_string = codes_as_string.split('\n')
 
 
 
 
 
 
 
 
 
 
 
47
 
48
+ flores_codes = {}
49
+ for code in codes_as_string:
50
+ lang, lang_code = code.split('\t')
51
+ flores_codes[lang] = lang_code