[Checkins] SVN: z3c.autoinclude/trunk/src/z3c/autoinclude/utils.py let `subpackageDottedNames` always return a sorted list of package names as `os.listdir` doesn't on some platforms. while this mainly fixes test failures as seen on linux (e.g. http://lists.plone.org/pipermail/testbot/2009-December/015364.html), returning the names in a predictable manner should also make sense in general...

Andreas Zeidler az at zitc.de
Wed Dec 9 19:57:12 EST 2009


Log message for revision 106361:
  let `subpackageDottedNames` always return a sorted list of package names as `os.listdir` doesn't on some platforms.  while this mainly fixes test failures as seen on linux (e.g. http://lists.plone.org/pipermail/testbot/2009-December/015364.html), returning the names in a predictable manner should also make sense in general...
  

Changed:
  U   z3c.autoinclude/trunk/src/z3c/autoinclude/utils.py

-=-
Modified: z3c.autoinclude/trunk/src/z3c/autoinclude/utils.py
===================================================================
--- z3c.autoinclude/trunk/src/z3c/autoinclude/utils.py	2009-12-09 22:22:56 UTC (rev 106360)
+++ z3c.autoinclude/trunk/src/z3c/autoinclude/utils.py	2009-12-10 00:57:11 UTC (rev 106361)
@@ -54,7 +54,7 @@
                 result.append('%s.%s' % (ns_dottedname, subpackage_name))
             else:
                 result.append(subpackage_name)
-    return result
+    return sorted(result)
 
 def isPythonPackage(path):
     if not os.path.isdir(path):



More information about the checkins mailing list