[Zope-CVS] CVS: Packages/pypes/pypes/tests - common.py:1.3

Casey Duncan casey at zope.com
Mon Aug 18 01:32:30 EDT 2003


Update of /cvs-repository/Packages/pypes/pypes/tests
In directory cvs.zope.org:/tmp/cvs-serv480/tests

Modified Files:
	common.py 
Log Message:
Add in-place sort function for use in tests


=== Packages/pypes/pypes/tests/common.py 1.2 => 1.3 ===
--- Packages/pypes/pypes/tests/common.py:1.2	Tue Aug  5 00:27:51 2003
+++ Packages/pypes/pypes/tests/common.py	Mon Aug 18 00:32:24 2003
@@ -90,3 +90,8 @@
         self.identity = pypes.services.identity(self.conn)
         get_transaction().commit()
     
+def sort(lst):
+    """Return a sorted copy of a list"""
+    l = lst[:]
+    l.sort()
+    return l




More information about the Zope-CVS mailing list