some changes to fixtures code

This commit is contained in:
Ronny Abraham 2019-03-28 14:35:54 +02:00
parent faa2bbb0c9
commit a380f55dba

View file

@ -829,10 +829,15 @@ def fixtures(appname=None, backup=False):
if configuration.project.host == 'localhost': if configuration.project.host == 'localhost':
p = re.compile("\[localhost\] out:") p = re.compile("\[localhost\] out:")
for match in p.finditer(output): for match in p.finditer(output):
pass pass
try:
pos = match.end() pos = match.end()
output = output[pos:] output = output[pos:]
except:
pass
# now find the first occurence of [ on a newline, e.g. # now find the first occurence of [ on a newline, e.g.
# [ # [