[config] use %r instead of %s for cube name makes things clearer stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 11 Jan 2011 12:05:12 +0100
branchstable
changeset 6799 30faf6021278
parent 6798 c3d5c0a215b7
child 6800 3f3d576b87d9
[config] use %r instead of %s for cube name makes things clearer
cwconfig.py
--- a/cwconfig.py	Mon Jan 10 14:00:37 2011 +0100
+++ b/cwconfig.py	Tue Jan 11 12:05:12 2011 +0100
@@ -450,14 +450,15 @@
 
     @classmethod
     def cube_dir(cls, cube):
-        """return the cube directory for the given cube id,
-        raise `ConfigurationError` if it doesn't exists
+        """return the cube directory for the given cube id, raise
+        `ConfigurationError` if it doesn't exist
         """
         for directory in cls.cubes_search_path():
             cubedir = join(directory, cube)
             if exists(cubedir):
                 return cubedir
-        raise ConfigurationError('no cube %s in %s' % (cube, cls.cubes_search_path()))
+        raise ConfigurationError('no cube %r in %s' % (
+            cube, cls.cubes_search_path()))
 
     @classmethod
     def cube_migration_scripts_dir(cls, cube):