[cwconfig] improve assert error message.
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Thu, 01 Mar 2012 17:22:56 +0100
changeset 8297 addb81a42c5d
parent 8292 6f2de09b29e8
child 8298 2a4bc6f75e9c
[cwconfig] improve assert error message. Single tuple element are processed in a non trivial way.
cwconfig.py
--- a/cwconfig.py	Fri Mar 02 09:44:58 2012 +0100
+++ b/cwconfig.py	Thu Mar 01 17:22:56 2012 +0100
@@ -825,7 +825,7 @@
     _cubes = None
 
     def init_cubes(self, cubes):
-        assert self._cubes is None, self._cubes
+        assert self._cubes is None, repr(self._cubes)
         self._cubes = self.reorder_cubes(cubes)
         # load cubes'__init__.py file first
         for cube in cubes: