|
[Rivet] [Rivet-svn] r2424 - trunk/pyextEike von Seggern jan.eike.von.seggern at physik.hu-berlin.deFri Apr 30 08:44:46 BST 2010
Hi all, the problem is, that generator expressions and list comprehensions were introduced with Python 2.4 . Once Falvia confirms that the explicit form works, I'll commit the change. Cheers, eike On Thu, Apr 29, 2010 at 23:15 +0100, blackhole at projects.hepforge.org wrote: > Author: buckley > Date: Thu Apr 29 23:21:00 2010 > New Revision: 2424 > > Log: > Add continuation characters -- seems to cause trouble in Python 2.3 > > Modified: > trunk/pyext/lighthisto.py > > Modified: trunk/pyext/lighthisto.py > ============================================================================== > --- trunk/pyext/lighthisto.py Thu Apr 29 17:46:48 2010 (r2423) > +++ trunk/pyext/lighthisto.py Thu Apr 29 23:21:00 2010 (r2424) > @@ -14,9 +14,9 @@ > > > from htmlentitydefs import codepoint2name > -unichr2entity = dict((unichr(code), u'&%s;' % name) > - for code,name in codepoint2name.iteritems() > - if code != 38) # exclude "&" > +unichr2entity = dict( (unichr(code), u'&%s;' % name) \ > + for code,name in codepoint2name.iteritems() \ > + if code != 38 ) # exclude "&" > > > def htmlescape(text, d=unichr2entity): > @@ -347,7 +347,7 @@ > return out > > def asGnuplot(self): > - out = "%e\t%e\t%e\t%e\t%e\t%e" % (self.getBinCenter(), self.yval, self.xlow, self.xhigh, > + out = "%e\t%e\t%e\t%e\t%e\t%e" % (self.getBinCenter(), self.yval, self.xlow, self.xhigh, > self.yval-self.yerrminus, self.yval+self.yerrplus) > return out
More information about the Rivet mailing list |