|
[Rivet-svn] r2851 - trunk/pyextblackhole at projects.hepforge.org blackhole at projects.hepforge.orgThu Dec 16 17:09:07 GMT 2010
Author: buckley Date: Thu Dec 16 17:09:07 2010 New Revision: 2851 Log: Removing now-unnecessary Python workaround for unsupported Python versions Modified: trunk/pyext/lighthisto.py Modified: trunk/pyext/lighthisto.py ============================================================================== --- trunk/pyext/lighthisto.py Thu Dec 16 17:06:03 2010 (r2850) +++ trunk/pyext/lighthisto.py Thu Dec 16 17:09:07 2010 (r2851) @@ -5,14 +5,6 @@ import re import logging -## Work around lacking functionality in old Python versions: -## Make "sorted" a builtin function on Python < 2.4 -if not 'sorted' in dir(__builtins__): - def sorted(iterable, cmp=None, key=None, reverse=None): - rtn = iterable - rtn.sort(cmp) - return rtn - from htmlentitydefs import codepoint2name unichr2entity = {}
More information about the Rivet-svn mailing list |