svn: r8203
This commit is contained in:
parent
d9a15e920f
commit
2ce4226efb
@ -278,13 +278,9 @@ class StageOne:
|
|||||||
for line in self.ifile:
|
for line in self.ifile:
|
||||||
self.lcnt +=1
|
self.lcnt +=1
|
||||||
data = line.split(None,2) + ['']
|
data = line.split(None,2) + ['']
|
||||||
try:
|
(level, key, value) = data[:3]
|
||||||
(level, key, value) = data[:3]
|
value = value.strip()
|
||||||
value = value.strip()
|
level = int(level)
|
||||||
level = int(level)
|
|
||||||
except:
|
|
||||||
print line
|
|
||||||
sys.exit(1)
|
|
||||||
key = key.strip()
|
key = key.strip()
|
||||||
|
|
||||||
if level == 0:
|
if level == 0:
|
||||||
@ -2955,7 +2951,6 @@ class GedcomParser(UpdateCallback):
|
|||||||
@param state: The current state
|
@param state: The current state
|
||||||
@type state: CurrentState
|
@type state: CurrentState
|
||||||
"""
|
"""
|
||||||
print line
|
|
||||||
self.parse_note(line, state.event, state.level+1)
|
self.parse_note(line, state.event, state.level+1)
|
||||||
|
|
||||||
def func_event_source(self, line, state):
|
def func_event_source(self, line, state):
|
||||||
|
Loading…
Reference in New Issue
Block a user