[Rivet-svn] r2424 - trunk/pyext

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Thu Apr 29 23:15:11 BST 2010


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-svn mailing list