Richard Heck wrote: > commit 5d9fb0d933436ca4db98ba45094e8675c584835c > Author: Richard Heck <rgh...@lyx.org> > Date: Mon Jun 25 10:09:26 2012 -0400 > > Protect postats.py script from silly errors. > > diff --git a/po/postats.py b/po/postats.py > index ca4787c..65be90e 100755 > --- a/po/postats.py > +++ b/po/postats.py > @@ -106,9 +106,13 @@ def run_msgfmt(pofile): ...
> + print header['Last-Translator'] This line is probably leftover from debuging. Pavel > + try: > + prop["email"] = header['Last-Translator'].split('<')[1][:-1] > + prop["email"] = prop["email"].replace("@", " () ") > + prop["email"] = prop["email"].replace(".", " ! ") > + except: > + prop["email"] = "lyx-devel()lyx!org" > translator = header['Last-Translator'].split('<')[0].strip() > try: > prop["translator"] = > translator.decode(charset).encode('ascii','xmlcharrefreplace') > > ----------------------------------------------------------------------- > > Summary of changes: > po/postats.py | 10 +++++++--- > 1 files changed, 7 insertions(+), 3 deletions(-) > > > hooks/post-receive > -- > The LyX Source Repository