revert part of 8014 patch, pending further review
This commit is contained in:
parent
1a8e08d80f
commit
1fc35fd0cc
@ -83,16 +83,12 @@ def importData(database, filename, user):
|
||||
|
||||
ansel = False
|
||||
gramps = False
|
||||
code_set = ''
|
||||
for index in range(50):
|
||||
line = ifile.readline().split()
|
||||
if len(line) == 0:
|
||||
break
|
||||
if len(line) > 2 and line[1][0:4] == 'CHAR':
|
||||
if line[2] in ('UTF-8', 'ANSI', 'ASCII'):
|
||||
code_set = line[2]
|
||||
elif line[2] == 'ANSEL':
|
||||
ansel = True
|
||||
if len(line) > 2 and line[1][0:4] == 'CHAR' and line[2] == "ANSEL":
|
||||
ansel = True
|
||||
if len(line) > 2 and line[1][0:4] == 'SOUR' and line[2] == "GRAMPS":
|
||||
gramps = True
|
||||
ifile.close()
|
||||
@ -106,6 +102,8 @@ def importData(database, filename, user):
|
||||
enc = ['ANSEL', 'ANSEL', 'ANSI', 'ASCII', 'UTF-8']
|
||||
code_set = enc[ code.get_active()]
|
||||
dialog.destroy()
|
||||
else:
|
||||
code_set = ""
|
||||
|
||||
assert(isinstance(code_set, STRTYPE))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user