f.write('\nDetails for translators (classes sorted alphabetically):\n')
cls=self.__translDic.keys()
cls=list(self.__translDic.keys())
cls.sort()
forcincls:
...
...
@@ -1764,28 +1765,28 @@ class TrManager:
lineReady=line!=''# when eof, then line == ''
line=line.strip()# eof should also behave as separator
ifline!=u''andline[0]==u'%':# skip the comment line
ifline!=''andline[0]=='%':# skip the comment line
continue
ifnotinside:# if outside of the record
ifline!=u'':# should be language identifier
ifline!='':# should be language identifier
classId=line
maintainersLst=[]
inside=True
# Otherwise skip empty line that do not act as separator.
else:# if inside the record
ifline==u'':# separator found
ifline=='':# separator found
inside=False
else:
# If it is the first maintainer, create the empty list.
ifnotself.__maintainersDic.has_key(classId):
ifclassIdnotinself.__maintainersDic:
self.__maintainersDic[classId]=[]
# Split the information about the maintainer and append
# the tuple. The address may be prefixed '[unreachable]'
# or whatever '[xxx]'. This will be processed later.
lst=line.split(u':',1)
lst=line.split(':',1)
assert(len(lst)==2)
t=(lst[0].strip(),lst[1].strip())
self.__maintainersDic[classId].append(t)
...
...
@@ -1821,7 +1822,7 @@ class TrManager:
doctpl=f.read()
f.close()
pos=doctpl.find(u'/***')
pos=doctpl.find('/***')
assertpos!=-1
doctpl=doctpl[pos:]
...
...
@@ -1829,21 +1830,21 @@ class TrManager:
# document template.
tplDic={}
s=u'Do not edit this file. It was generated by the %s script.\n * Instead edit %s and %s'%(self.script_name,self.languageTplFileName,self.maintainersFileName)
s='Do not edit this file. It was generated by the %s script.\n * Instead edit %s and %s'%(self.script_name,self.languageTplFileName,self.maintainersFileName)